You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stub::make('traitName') throws exception [RuntimeException] Stubbed class traitName doesn't exist.
Stub::makeEmpty('traitName') dies with PHP Fatal error: Cannot redeclare class traitName in phar:///.../codecept.phar/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php(290) : eval()'d code on line 2
Stub::make('traitName')
throws exception[RuntimeException] Stubbed class traitName doesn't exist.
Stub::makeEmpty('traitName')
dies withPHP Fatal error: Cannot redeclare class traitName in phar:///.../codecept.phar/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator.php(290) : eval()'d code on line 2
PhpUnit can mock traits https://phpunit.de/manual/current/en/test-doubles.html#test-doubles.mocking-traits-and-abstract-classes
The text was updated successfully, but these errors were encountered: