diff --git a/src/Behat/Mink/Driver/GoutteDriver.php b/src/Behat/Mink/Driver/GoutteDriver.php index bc6b6dd78..6c34c68f3 100644 --- a/src/Behat/Mink/Driver/GoutteDriver.php +++ b/src/Behat/Mink/Driver/GoutteDriver.php @@ -51,6 +51,16 @@ public function __construct($startUrl, Client $client = null) $this->client->followRedirects(true); } + /** + * Returns BrowserKit HTTP client instance. + * + * @return Symfony\Component\BrowserKit\Client + */ + public function getClient() + { + return $this->client; + } + /** * @see Behat\Mink\Driver\DriverInterface::setSession() */ diff --git a/src/Behat/Mink/Driver/SahiDriver.php b/src/Behat/Mink/Driver/SahiDriver.php index a7671e5d7..473381001 100644 --- a/src/Behat/Mink/Driver/SahiDriver.php +++ b/src/Behat/Mink/Driver/SahiDriver.php @@ -48,6 +48,16 @@ public function __construct($startUrl, $browserName, Client $client = null) $this->browserName = $browserName; } + /** + * Returns Sahi client instance. + * + * @return Behat\SahiClient\Client + */ + public function getClient() + { + return $this->client + } + /** * @see Behat\Mink\Driver\DriverInterface::setSession() */