From 7f0c691d24784b1ef924fb58ff0cfef709ca38de Mon Sep 17 00:00:00 2001 From: James Lee Date: Fri, 5 Feb 2016 16:06:30 -0600 Subject: [PATCH] fixed guzzle parameter passing Guzzle does not expect 'default' array to be passed to the constructor. If passed as a default key, guzzle will not updates it's defaults. --- .../MinkExtension/ServiceContainer/Driver/GoutteFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Behat/MinkExtension/ServiceContainer/Driver/GoutteFactory.php b/src/Behat/MinkExtension/ServiceContainer/Driver/GoutteFactory.php index de774a6..2bb3416 100644 --- a/src/Behat/MinkExtension/ServiceContainer/Driver/GoutteFactory.php +++ b/src/Behat/MinkExtension/ServiceContainer/Driver/GoutteFactory.php @@ -90,7 +90,7 @@ class GoutteFactory implements DriverFactory $parameters['allow_redirects'] = false; $parameters['cookies'] = true; - return new Definition('GuzzleHttp\Client', array(array('defaults' => $parameters))); + return new Definition('GuzzleHttp\Client', array($parameters)); }