Tests/Controller/DefaultControllerTest.php
author ymh <ymh.work@gmail.com>
Thu, 27 Oct 2011 21:21:11 +0200
changeset 18 6f16b9fd6a17
parent 1 06a22ff5d58d
permissions -rwxr-xr-x
finish dynamic save

<?php

namespace IRI\Bundle\WikiTagBundle\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);
    }
}