for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* (c) Kévin Dunglas <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\ActionBundle\Tests;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
/**
* @author Kévin Dunglas <[email protected]>
class FunctionalTest extends WebTestCase
{
public function testDummyAction()
$client = static::createClient();
$crawler = $client->request('GET', '/');
$this->assertSame('Here we are!', $crawler->text());
}
public function testSensioFrameworkExtraActionAction()
$crawler = $client->request('GET', '/extra');
$this->assertSame('How are you?', $crawler->text());
public function testRouteAnnotationAction()
$crawler = $client->request('GET', '/annotation');
$this->assertSame('Hey, ho, let\'s go!', $crawler->text());
public function testOverrideAction()
$crawler = $client->request('GET', '/override');
$this->assertSame('Override', $crawler->text());