Given this code:
function testMe($a) { if ($a) { return 1; } else { return $this->testMe(true); } }
testMe() cannot be mocked, because then I cant call it. On the other hand, it must be mocked…
testMe()
Aucun commentaire:
Enregistrer un commentaire