Phpunit with symfony controller test

I am reading phpunit docs to learn phpunit. I run phpunit to symfony controller test that symfony generated it on bundle generation and I got error. what is wrong in this test case?
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class DefaultControllerTest extends WebTestCase
{
    public function testIndex()
    {
        $client = static::createClient();

        $crawler = $client->request('GET', '/hello/Fabien');

        $this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
    }
}

I also probably have to ass that I did run phpunit under /app/ folder where the .xml is located.
please advice.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.