src/Company/BaseBundle/Tests/Controller/DefaultControllerTest.php
author ymh <ymh.work@gmail.com>
Thu, 27 Oct 2011 21:19:07 +0200
changeset 19 c061708be5e4
parent 2 806e57d67020
permissions -rwxr-xr-x
finish dynamic save of documents

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