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
In the first case, the installation of phpstan/phpstan-phpunit extension
should be sufficient. Second case is not currently supported, but should be
easy to add.
Activity
ondrejmirtes commentedon Dec 25, 2018
josephzidell commentedon Dec 25, 2018
One of:
\Codeception\Test\Unitthat directly extends\PHPUnit\Framework\TestCase(unit tests)AcceptanceTesterthat uses a trait_generated\AcceptanceTesterActionswhich wraps the Codeception assert (acceptance tests)josephzidell commentedon Dec 25, 2018
In the second case, there are a few layers of wrapper paper, all using the same method name and signature.
ondrejmirtes commentedon Dec 25, 2018
josephzidell commentedon Dec 26, 2018
OK, will give it a whirl
ondrejmirtes commentedon Dec 27, 2018
You need to make
$classa constructor parameter in these two classes:Then you need to specify the class in those services here (as part of
argumentskey... check PHPStan configs for how it's done):Once this change is merged, you will be able to register these services in your own
phpstan.neonwith custom classes.