php_testability
php_testability copied to clipboard
Add suport for @Factory annotation
Factories should not report new
instances.
(But maybe should complain about other behaviours (conditionals and statements))
So add support for an annotation that marks a class as a factory (@Factory).
Let's ignore conditionals and statements for now and just focus on new
No need for urgency, since #48 already addresses most cases.
This has to wait for next php-parser release (same thing happened with @codeCoverageIgnore support)