src/Company/BaseBundle/Tests/Controller/DefaultControllerTest.php
author ymh <ymh.work@gmail.com>
Thu, 06 Oct 2011 10:22:59 +0200
changeset 8 062b0cefef7e
parent 2 806e57d67020
permissions -rw-r--r--
finish installation of the new bundle

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