I'm upgrading a laravel 3 site to laravel 4, and writing unit tests for it as I go. This is working great, I've about 300 tests so far in about 20 test cases, and each one of them work fine run individually. Until recently they have all worked fine run together, but I seem to have crossed some threshold where I can't run any more tests in one go without the following error:
PHP Fatal error: Illuminate\Filesystem\Filesystem::getRequire(): Failed opening required '/Users/Me/Desktop/Repos/API-2/app/config/api.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Users/Me/Desktop/Repos/API-2/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php on line 53
The config file which is failing to include is used in almost every single test, and as ALL test cases work fine when run individually, I can't understand why this error is happening only when they are all run together.
This error shows when the tests near completion, so my first though was a memory or execution time limit, I've tried doubling these in php.ini, but I don't think they apply in the CLI anyway? I'm not sure what else could cause a problem like this which only happens when all are run together?
Edit
Does no one know what could be causing this? Currently the best I can do for now to run all the tests is the following bash script, then scroll though the pages of result looking for errors...
#!/bin/bash
for f in app/tests/*Test.php ; do phpunit "$f" ; done