src/Company/BaseBundle/Tests/Controller/DefaultControllerTest.php
author ymh <ymh.work@gmail.com>
Fri, 18 Nov 2011 17:42:18 +0100
changeset 37 c67bc03ec09c
parent 2 806e57d67020
permissions -rwxr-xr-x
add commands to purge taf=gs and query wikipedia

<?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);
    }
}