Skip to content

Instantly share code, notes, and snippets.

@bellaajhabib
Created February 6, 2015 13:53
Show Gist options
  • Save bellaajhabib/583866a2f62347bdd4ec to your computer and use it in GitHub Desktop.
Save bellaajhabib/583866a2f62347bdd4ec to your computer and use it in GitHub Desktop.
hgello anis
<?php
namespace Yoda\EventBundle\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);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment