We are developping a Symfony2 project on which we wrote several PHPUnit tests.
On some of them (the ones involving large memmory ammounts) we get an error message:
There was 1 failure:
1) GapCoach\Bundle\Tests\Controller\ClientControllerTest::testDesaClient
Fatal error: Call to undefined function file_iterator_autoload() in /usr/share/php/PHPUnit/Util/GlobalState.php on line 379
I installed the last PHPUnit version, and file_iterator_autoload function really exists and is accessible.
How can we solve this error?
The solution was just to upgrade PHPUnit to version 3.7.13