jeudi 26 novembre 2015

PHPUnit: Mock a method to behave like identity

Using PHPUnit, is there any way to mock a method and make it behave like identity (x->x) ? Something around the lines of :

$this->myMethod(Argument::any())->willReturn(<should return the argument untouched>)

Aucun commentaire:

Enregistrer un commentaire