Codeception / Codeception/Stub

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

Offen
#36 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
PHP
Sterne
301
Forks
19
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.