PHP code example of gricob / functional-test-bundle
1. Go to this page and download the library: Download gricob/functional-test-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gricob / functional-test-bundle example snippets
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!');
}
}