php_testability icon indicating copy to clipboard operation
php_testability copied to clipboard

Leaf function / Value object list

Open edsonmedina opened this issue 10 years ago • 1 comments

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.

edsonmedina avatar Nov 20 '14 14:11 edsonmedina

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.

edsonmedina avatar Jan 08 '15 10:01 edsonmedina