PHP code example of draw / tester-bundle
1. Go to this page and download the library: Download draw/tester-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/ */
draw / tester-bundle example snippets
namespace App\Tests;
use Draw\Bundle\TesterBundle\Http\BrowserFactoryInterface;
use Draw\Bundle\TesterBundle\Http\HttpTesterTrait;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\BrowserKit\AbstractBrowser;
class TestCase extends KernelTestCase implements BrowserFactoryInterface
{
use HttpTesterTrait;
public function createBrowser(): AbstractBrowser
{
return static::bootKernel()->getContainer()->get('test.client');
}
}