Codeception / Codeception/Stub

Ability to specify the arguments of Generator::getMock like $callOriginalClone, $callAutoload, ...etc.

Open
#36 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
301
Forks
19
PR merge metrics
No merged PRs in 30d

Description

So far, we cannot specify the third and subsequent arguments of [Generator::getMock](https://github.com/sebastianbergmann/phpunit-mock-objects/blob/0dfddc236629eb7ead4df2dfa3d79d548e011a3b/src/Generator.php#L79).
It causes unexpected result in some case, i.e. `$cloneArguments` is always true so comparison like `with` would be failed like the issue below:
https://github.com/sebastianbergmann/phpunit-mock-objects/issues/348

Is it possible to specify those parameters by Codeception's Stub?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.