public function BrowserKitDriver::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::__construct()
Initializes BrowserKit driver.
Parameters
Client $client BrowserKit client instance:
string|null $baseUrl Base URL for HttpKernel clients:
1 call to BrowserKitDriver::__construct()
- GoutteDriver::__construct in vendor/
behat/ mink-goutte-driver/ src/ GoutteDriver.php - Initializes Goutte driver.
1 method overrides BrowserKitDriver::__construct()
- GoutteDriver::__construct in vendor/
behat/ mink-goutte-driver/ src/ GoutteDriver.php - Initializes Goutte driver.
File
- vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php, line 51
Class
- BrowserKitDriver
- Symfony2 BrowserKit driver.
Namespace
Behat\Mink\DriverCode
public function __construct(Client $client, $baseUrl = null) {
$this->client = $client;
$this->client
->followRedirects(true);
if ($baseUrl !== null && $client instanceof HttpKernelClient) {
$client
->setServerParameter('SCRIPT_FILENAME', parse_url($baseUrl, PHP_URL_PATH));
}
}