symfony functional tests webtestcase doesn't work symfony functional tests webtestcase doesn't work symfony symfony

symfony functional tests webtestcase doesn't work


Check which WebTestCase class you are using. Most probably you are using

use Symfony\Bundle\FrameworkBundle\Tests\Functional\WebTestCase

and you should be using

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

So just change this one line and you should be good


you may have mistakenly used

    Symfony\Bundle\SecurityBundle\Tests\Functional 

or

    Symfony\Bundle\FrameworkBundle\Tests\Functional\WebTestCase 

instead of

    Symfony\Bundle\FrameworkBundle\Test\WebTestCase,