File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -220,21 +220,20 @@ In order to talk with Goutte, you should instantiate a
220220 $driver = new \Behat\Mink\Driver\GoutteDriver();
221221
222222 Also, if you want to configure Goutte more precisely, you could do the full
223- setup by hands :
223+ setup by hand :
224224
225225.. code-block :: php
226226
227- $zendOptions = array();
228- $serverOptions = array();
227+ $clientOptions = array();
229228
230- $driver = new \Behat\Mink\Driver\GoutteDriver(
231- new \Goutte\ Client($zendOptions , $serverOptions)
232- );
229+ $client = new \Behat\Mink\Driver\Goutte\Client();
230+ $client->setClient( new \Guzzle\Http\ Client('' , $clientOptions));
231+ $driver = new \Behat\Mink\Driver\GoutteDriver($client );
233232
234233 .. tip ::
235234
236- ``$zendOptions `` is an array of parameters for Zend HTTP client, which
237- Goutte uses internally. You can read about Zend client parameters `here <http://framework.zend.com/manual/en/zend. http.client .html >`_.
235+ ``$clientOptions `` is an array of parameters for Guzzle HTTP client, which
236+ Goutte uses internally. You can read about Guzzle client parameters `here <http://guzzlephp.org/tour/ http.html >`_.
238237
239238SahiDriver
240239~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments