Relative Content

Tag Archive for phpunit

Unit testing Eloquent outside of Laravel

How can I unit test my Eloquent models when I’m using the ORM outside of Laravel? What I’m hoping to do it run tests on each model but somehow mock the database connection/query/builder(?) object.

Test logic with external data [duplicate]

This question already has answers here: How should I test the functionality of a function that uses other functions in it? [duplicate] (2 answers) Closed 9 years ago. I have a site programmed in PHP where I make more call to external server that return me big xml of data. For each record of the […]