This Bundle provides base classes for functional tests on Symfony
composer require --dev gricob/functional-test-bundle
use Gricob\FunctionalTestBundle\Testing\FunctionalTestCase as TestCase;
class FunctionalTestCase extends TestCase
{
public function testGetRequest()
{
$response = $this->get('/home');
$response
->assertOk()
->assertSee('Welcome to functional testing!');
}
}
Check the documentation on the wiki
The assertions are inspired on Laravel testing assertions.