Skip to content

Commit 8e69e92

Browse files
committed
Merge pull request #10 from xmeltrut/master
Updating to reflect Goutte now uses Guzzle
2 parents b976373 + f6f7972 commit 8e69e92

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

index.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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

239238
SahiDriver
240239
~~~~~~~~~~

0 commit comments

Comments
 (0)