public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/'); $this->assertContains('My Symfony Application', $client->getResponse()->getContent()); }