Tests/Controller/DefaultControllerTest.php
author ymh <ymh.work@gmail.com>
Sun, 06 Nov 2011 23:45:50 +0100
changeset 28 85c7e5e965e2
parent 1 06a22ff5d58d
permissions -rwxr-xr-x
Branch merge

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