Closed SUN5H1N3 closed 1 year ago
@SUN5H1N3 I moved your issue to correct repository.
But i get error: Class "PHPUnit\Framework\MockObject\Generator" not found
@SUN5H1N3 Which version of PHPUnit did you use? Was it 10.3?
https://github.com/Codeception/Stub/pull/42 should fix it.
I trying to make stub by Stub::make() method
But i get error: Class "PHPUnit\Framework\MockObject\Generator" not found
Console output:
This is because you have
"phpunit/phpunit": "^9.5.20 || ^10.0"
in your composer.json. Because of this, when i install codeception, the 10th version of phpunit is installed. But in this version of phpunitPHPUnit\Framework\MockObject\Generator
has been moved toPHPUnit\Framework\MockObject\Generator\Generator
. If I specificaly add to my composer.json"phpunit/phpunit": "^9.5.20"
to force the use of the 9th one, then everything starts working properly.Details