3 namespace AppBundle\Tests\Controller
;
5 use Symfony\Bundle\FrameworkBundle\Test\WebTestCase
;
7 class DefaultControllerTest
extends WebTestCase
9 public function testIndex()
11 $client = static::createClient();
13 $crawler = $client->request('GET', '/app/example');
15 $this->assertEquals(200, $client->getResponse()->getStatusCode());
16 $this->assertTrue($crawler->filter('html:contains("Homepage")')->count() > 0);