| author | ymh <ymh.work@gmail.com> |
| Sun, 06 Nov 2011 23:44:37 +0100 | |
| changeset 27 | 1df556b2c0f9 |
| parent 2 | 806e57d67020 |
| permissions | -rwxr-xr-x |
| 2 | 1 |
<?php |
2 |
||
3 |
namespace Company\BaseBundle\Tests\Controller; |
|
4 |
||
5 |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; |
|
6 |
||
7 |
class DefaultControllerTest extends WebTestCase |
|
8 |
{ |
|
9 |
public function testIndex() |
|
10 |
{ |
|
11 |
$client = static::createClient(); |
|
12 |
||
13 |
$crawler = $client->request('GET', '/hello/Fabien'); |
|
14 |
||
15 |
$this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0); |
|
16 |
} |
|
17 |
} |