php_testability
php_testability copied to clipboard
php5.5 ::class static call should not be reported
http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.class
Seems reasonable, but, to be clear, this is a “class constant”, not a “static method call”. Also, depending on the context, coupling something to a specific class may make something more difficult to test. (It depends a lot on what this is used for.) parent::class
, self::class
and static::class
should never impede testing, I believe.