mardi 9 août 2016

Define common acceptance test functions with PHPUnit

I have been writing some acceptance tests for a Laravel based API and I have a number of common test scenarios like testing with negative row count, valid row count, negative page number etc. Currently I am writing all these methods separately and is included in all the test case classes. How can I call a single method from the test case like testPaginatedResults() or something and execute all the necessary methods to check a paginated listing API response ?

Aucun commentaire:

Enregistrer un commentaire