vendredi 19 décembre 2014

Testing models and services with Laravel, PHPSpec and PHPUnit

Im having difficulty deciding or understanding the best approach to testing in Laravel.


I really like the behavioural side of PHPSpec testing, although it is just not compatible with testing Eloquent models or anything related to an active record ORM.


When testing things like service providers PHPSpec seems like the way to go.


** Is it desirable to test models with something like PHPUnit, then test other non ORM layers such as service providers with something like PHPSpec? ***


Aucun commentaire:

Enregistrer un commentaire