You are here

public function GoutteDriver::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink-goutte-driver/src/GoutteDriver.php \Behat\Mink\Driver\GoutteDriver::__construct()

Initializes Goutte driver.

Parameters

Client $client Goutte client instance:

Overrides BrowserKitDriver::__construct

File

vendor/behat/mink-goutte-driver/src/GoutteDriver.php, line 28

Class

GoutteDriver
Goutte driver.

Namespace

Behat\Mink\Driver

Code

public function __construct(Client $client = null) {
  parent::__construct($client ?: new ExtendedClient());
}