xunitpatterns / xunitpatterns-stan
PHPStan linting for PHPUnit based on the smells in the XUnit Patterns book by Gerard Meszaros
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 2
Type:phpstan-extension
Requires (Dev)
- jetbrains/phpstorm-attributes: ^1.0
- nikic/php-parser: ^4.13.0
- php-parallel-lint/php-parallel-lint: ^1.2
- phpstan/phpstan: ^1.7
- phpstan/phpstan-strict-rules: ^1.0
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2025-04-13 01:29:51 UTC
README
This is an extension for PHPStan that adds some rules based on the smells in the XUnit Patterns book by Gerard Meszaros.
Installation
To use this extension, require it in Composer:
composer require --dev xunitpatterns/xunitpatterns-stan
That is all you need to do if you have phpstan/extension-installer then that's all you need to do.
Otherwise, you will need to include the rules manually in your phpstan.neon file.