src/Company/BaseBundle/Tests/Controller/DefaultControllerTest.php
author ymh <ymh.work@gmail.com>
Thu, 17 Nov 2011 11:30:00 +0100
changeset 32 f166042d4421
parent 2 806e57d67020
permissions -rwxr-xr-x
add event on tag changed

<?php

namespace Company\BaseBundle\Tests\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class DefaultControllerTest extends WebTestCase
{
    public function testIndex()
    {
        $client = static::createClient();

        $crawler = $client->request('GET', '/hello/Fabien');

        $this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
    }
}