1212
1313use Behat \Mink \Exception \DriverException ;
1414use Behat \Mink \Exception \UnsupportedDriverActionException ;
15+ use Symfony \Component \BrowserKit \AbstractBrowser ;
1516use Symfony \Component \BrowserKit \Client ;
1617use Symfony \Component \BrowserKit \Cookie ;
1718use Symfony \Component \BrowserKit \Exception \BadMethodCallException ;
2122use Symfony \Component \DomCrawler \Field \FileFormField ;
2223use Symfony \Component \DomCrawler \Field \FormField ;
2324use Symfony \Component \DomCrawler \Field \InputFormField ;
24- use Symfony \Component \DomCrawler \Field \TextareaFormField ;
2525use Symfony \Component \DomCrawler \Form ;
26- use Symfony \Component \HttpKernel \Client as HttpKernelClient ;
26+ use Symfony \Component \HttpKernel \HttpKernelBrowser ;
2727
2828/**
2929 * Symfony2 BrowserKit driver.
@@ -47,20 +47,20 @@ class BrowserKitDriver extends CoreDriver
4747 * @param Client $client BrowserKit client instance
4848 * @param string|null $baseUrl Base URL for HttpKernel clients
4949 */
50- public function __construct (Client $ client , $ baseUrl = null )
50+ public function __construct (AbstractBrowser $ client , $ baseUrl = null )
5151 {
5252 $ this ->client = $ client ;
5353 $ this ->client ->followRedirects (true );
5454
55- if ($ baseUrl !== null && $ client instanceof HttpKernelClient ) {
55+ if ($ baseUrl !== null && $ client instanceof HttpKernelBrowser ) {
5656 $ client ->setServerParameter ('SCRIPT_FILENAME ' , parse_url ($ baseUrl , PHP_URL_PATH ));
5757 }
5858 }
5959
6060 /**
61- * Returns BrowserKit HTTP client instance.
61+ * Returns BrowserKit browser instance.
6262 *
63- * @return Client
63+ * @return AbstractBrowser
6464 */
6565 public function getClient ()
6666 {
0 commit comments