php_testability
php_testability copied to clipboard
Leaf function / Value object list
Possibility to specify an list of:
- Leaf functions (won't be counted as a global function call)
- Value object classes (won't be flagged when using
new
)
This should be used like: testability --leaf-functions leaf_list.txt --value-classes value_list.txt
And the contents would be added to the Dictionary class.
Maybe "leaf" is a bad idea.
Being a leaf (in the call graph - with no dependencies) does not make it safe for testing, because it can still contain a lot of logic inside.