fixed tests on Symfony <2.2