phpstan-phpunit icon indicating copy to clipboard operation
phpstan-phpunit copied to clipboard

PHPUnit extensions and rules for PHPStan

Results 40 phpstan-phpunit issues
Sort by recently updated
recently updated
newest added

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [slevomat/coding-standard](https://togithub.com/slevomat/coding-standard) | require-dev | major | `^7.0` -> `^8.0` | ---...

This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. ## Open These updates have all been created already. Click a checkbox below to...

continuation of https://github.com/phpstan/phpstan-phpunit/pull/119 but changed quite a bit aswell as resolving the PR feedback in 119, i had to rework some of the code due to phpstan 1.6 deprecating the...

When writing annotations, missing a space between the annotation and the value will result in the annotation not being recognized. This PR adds a rule that specific annotations that have...

Its easy to make typos or miss updating a covers tag during a refactor and this helps catch it earlier.

The extension marks `markTestIncomplete` and `markTestSkipped` as `earlyTerminatingMethodCalls`. The effect is that PHPStan will emit a `Unreachable statement - code above always terminates.` error for any code after them. I...

Hello, thank you for your work. Reporting issue about the `onlyMethods` from `phpunit`, it looks than `phpstan-phpunit` do not check methods added with these method and raise an error. When:...

I have not been able to create a working example for this on the PHPStan playground as this bug involves PHPUnit and the phpstan-phpunit package. We have a class with...

Resolves https://github.com/phpstan/phpstan-phpunit/issues/34

Closes #58 I copied the `ExtensionTestCase` from https://github.com/phpstan/phpstan-symfony/blob/master/tests/Type/Symfony/ExtensionTestCase.php. Is there a better way to test this?