Symfony functional test fail but the same request works in browser
问题 I followed the Symfony documentation about functional tests in order to write my first one, but I have some issues. The response I get via browser works good: But when I run phpunit -c app/ in the shell I get a failure. 1) AppBundle\Tests\Controller\MeterAPIControllerTest::testGetAllVariables Failed asserting that 500 matches expected 200. This is the code: <?php namespace AppBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class MeterAPIControllerTest extends