phpstan-phpunit
phpstan-phpunit copied to clipboard
Rule to enforce class naming
Continuation of #214
What if we introduce optional path parameter to phpunit.xml in the same manner as containerXmlPath in phpstan/phpstan-symfony package? Then we can analyse suffix option for each directory and check all class names.
Isn't this something that https://github.com/shipmonk-rnd/dead-code-detector could take care of once it can detect unused classes? https://github.com/shipmonk-rnd/dead-code-detector
Well, maybe. We can look at this problem from different angles. We can think that some class is unused. But we also can think that some class has a wrong name.
Also we can interpret "unused class" in different ways. What if some test class with wrong name referenced by another class? Is it used or not then?