samedi 27 décembre 2014

Testing interfaces rather then classes PHPSpec

When unit testing classes with PHPSpec I want to know if its possible to test against their interfaces rather then the concrete class implementation?


Why? Because if classes are following the interface properly then they should all be returning the same results no?


Aucun commentaire:

Enregistrer un commentaire