Skip to content

Testing Rector rules and PHPStan rules in the same test suite #8975

Answered by samsonasik
nikophil asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, You can include rector's preload.php for that in phpunit bootstrap, see for example https://github.com/cakephp/upgrade/blob/0f84083e7fa59315c5a37c8c38632d4670bd1001/tests/bootstrap.php#L14

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nikophil
Comment options

Answer selected by samsonasik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants