PHP Classes

File: Tests/Controller/DefaultControllerTest.php

Recommend this page to a friend!
  Classes of Mohamed Aymen Ben Slimane   Exceptionizer Bundle   Tests/Controller/DefaultControllerTest.php   Download  
File: Tests/Controller/DefaultControllerTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: Exceptionizer Bundle
Throw exceptions that can be caught with listeners
Author: By
Last change:
Date: 9 years ago
Size: 407 bytes
 

Contents

Class file image Download
<?php

namespace Mabs\ExceptionizerBundle\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);
    }
}