php_testability icon indicating copy to clipboard operation
php_testability copied to clipboard

Function without arguments and without return

Open edsonmedina opened this issue 10 years ago • 0 comments

If a function takes no arguments, can it be tested in isolation?

A class method can be tested for dependencies called (mocked methods, etc), but what can we test on a global function with no arguments and no return?

edsonmedina avatar Dec 15 '14 14:12 edsonmedina