I signed up to GitHub and forked Symfony2. I tried to run the Symfony2 tests according to the instructions. I type > phpunit but every time, after some tests, I suddenly get out of memory message:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 40 bytes) in ...\Symfony\Component\HttpFoundation\HeaderBag.php on line 37
Then, the tests result is something like that:
503 Service Unavailable503 Service Unavailable503 Service Unavailable503 Service
Unavailable503 Service Unavailable503 Service Unavailable503 Service Unavailable
What may be causing it?
I ran into the same problem using the 2.0 branch. The full set of tests require approx. 163Mb of memory and like first answer said php defaults to 128M. You have two options.
Change the default max memory allocation to something greater than 163Mb.
memory_limit = 200M in php.inior
phpunit.xml.disttophpunit.xmlbootstrap="tests/local-bootstrap.php".gitignorefortests/local-bootstrap.phplocal-bootstrap.php
This way allows you to add local changes without having to worry about git tacking any modifications to files that are local to your machine.