php_testability
php_testability copied to clipboard
Analyses and reports testability issues of a php codebase
something like `--disable-default-exclude`
- Use different method separators ("::" for static, "->" for non static) - Display full argument list
Refactor the Dictionary class: - Remove the current full list minus blacklist method - Create a whitelist
These: ``` $externalObj->subObject->method(); $a = $externalObj->anotherObj->someproperty; ``` Violate the Law of Demeter. But this: ``` $query->select('*')->from('table')->where('1=1'); ``` Does not (methods instead of properties) Also this: ``` $this->internalObj->getSomething(); ``` Because it...
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).