php_testability icon indicating copy to clipboard operation
php_testability copied to clipboard

Add suport for @Factory annotation

Open edsonmedina opened this issue 10 years ago • 3 comments

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).

edsonmedina avatar Dec 16 '14 15:12 edsonmedina

Let's ignore conditionals and statements for now and just focus on new

edsonmedina avatar Jan 06 '15 11:01 edsonmedina

No need for urgency, since #48 already addresses most cases.

edsonmedina avatar Jan 06 '15 14:01 edsonmedina

This has to wait for next php-parser release (same thing happened with @codeCoverageIgnore support)

edsonmedina avatar Jan 16 '15 00:01 edsonmedina