Mercurial > hg > dml-open-vis
annotate src/DML/MainVisBundle/Tests/Controller/DefaultControllerTest.php @ 1:f38015048f48 tip
Added GPL
author | Daniel Wolff |
---|---|
date | Sat, 13 Feb 2016 20:43:38 +0100 |
parents | 493bcb69166c |
children |
rev | line source |
---|---|
Daniel@0 | 1 <?php |
Daniel@0 | 2 |
Daniel@0 | 3 namespace DML\MainVisBundle\Tests\Controller; |
Daniel@0 | 4 |
Daniel@0 | 5 use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; |
Daniel@0 | 6 |
Daniel@0 | 7 class DefaultControllerTest extends WebTestCase |
Daniel@0 | 8 { |
Daniel@0 | 9 public function testIndex() |
Daniel@0 | 10 { |
Daniel@0 | 11 $client = static::createClient(); |
Daniel@0 | 12 |
Daniel@0 | 13 $crawler = $client->request('GET', '/hello/Fabien'); |
Daniel@0 | 14 |
Daniel@0 | 15 $this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0); |
Daniel@0 | 16 } |
Daniel@0 | 17 } |