00001 <?php 00002 00003 namespace Etrali\GinangBundle\Tests\Controller; 00004 00005 use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; 00006 00007 class DefaultControllerTest extends WebTestCase 00008 { 00009 public function testIndex() 00010 { 00011 $client = static::createClient(); 00012 00013 $crawler = $client->request('GET', '/hello/Fabien'); 00014 00015 $this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0); 00016 } 00017 }