{"action":"created","issue":{"url":"https://api.github.com/repos/jhedstrom/drupalextension/issues/193","labels_url":"https://api.github.com/repos/jhedstrom/drupalextension/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/jhedstrom/drupalextension/issues/193/comments","events_url":"https://api.github.com/repos/jhedstrom/drupalextension/issues/193/events","html_url":"https://github.com/jhedstrom/drupalextension/issues/193","id":96866082,"number":193,"title":"Tests are failing since Drupal 8 updated Guzzle to 5.3.0","user":{"login":"pfrenssen","id":442924,"avatar_url":"https://avatars.githubusercontent.com/u/442924?v=3","gravatar_id":"","url":"https://api.github.com/users/pfrenssen","html_url":"https://github.com/pfrenssen","followers_url":"https://api.github.com/users/pfrenssen/followers","following_url":"https://api.github.com/users/pfrenssen/following{/other_user}","gists_url":"https://api.github.com/users/pfrenssen/gists{/gist_id}","starred_url":"https://api.github.com/users/pfrenssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfrenssen/subscriptions","organizations_url":"https://api.github.com/users/pfrenssen/orgs","repos_url":"https://api.github.com/users/pfrenssen/repos","events_url":"https://api.github.com/users/pfrenssen/events{/privacy}","received_events_url":"https://api.github.com/users/pfrenssen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jhedstrom/drupalextension/milestones/2","html_url":"https://github.com/jhedstrom/drupalextension/milestones/3.1.0%20release","labels_url":"https://api.github.com/repos/jhedstrom/drupalextension/milestones/2/labels","id":1173071,"number":2,"title":"3.1.0 release","description":"","creator":{"login":"jhedstrom","id":76833,"avatar_url":"https://avatars.githubusercontent.com/u/76833?v=3","gravatar_id":"","url":"https://api.github.com/users/jhedstrom","html_url":"https://github.com/jhedstrom","followers_url":"https://api.github.com/users/jhedstrom/followers","following_url":"https://api.github.com/users/jhedstrom/following{/other_user}","gists_url":"https://api.github.com/users/jhedstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/jhedstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhedstrom/subscriptions","organizations_url":"https://api.github.com/users/jhedstrom/orgs","repos_url":"https://api.github.com/users/jhedstrom/repos","events_url":"https://api.github.com/users/jhedstrom/events{/privacy}","received_events_url":"https://api.github.com/users/jhedstrom/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":7,"state":"open","created_at":"2015-06-19T21:04:50Z","updated_at":"2015-07-23T18:31:34Z","due_on":"2015-07-24T07:00:00Z","closed_at":null},"comments":7,"created_at":"2015-07-23T17:46:50Z","updated_at":"2015-07-28T16:35:10Z","closed_at":null,"body":"The Drupal 8 tests on the current master branch are failing because some interfaces have changed in the new Guzzle 5.3.0:\r\n\r\n```\r\nPHP Fatal error:  Declaration of GuzzleHttp\\Client::send() must be compatible with GuzzleHttp\\ClientInterface::send(GuzzleHttp\\Message\\RequestInterface $request) in /home/travis/build/pfrenssen/drupalextension/drupal/core/vendor/guzzlehttp/guzzle/src/Client.php on line 27\r\n```\r\n\r\nThis is occurring because Behat needs Goutte, and Goutte needs Guzzle, so Guzzle is present in our autoloader. An older version of Guzzle is also present in Drupal 8 core, so when the D8 API functions are used they will invoke methods that are adhering to the older version, causing fatal errors to be thrown when an incompatible interface is encountered.\r\n\r\nThis is highlighting another problem: When Drupal 8 is bootstrapped in `DrupalDriver::getDrupalVersion()` the `autoload.php` of Drupal 8 is parsed, so we are actually loading two conflicting autoloaders, our own and Drupal's. This will cause conflicts when functions are redeclared, it is actually surprising that it worked up to now."},"comment":{"url":"https://api.github.com/repos/jhedstrom/drupalextension/issues/comments/125673493","html_url":"https://github.com/jhedstrom/drupalextension/issues/193#issuecomment-125673493","issue_url":"https://api.github.com/repos/jhedstrom/drupalextension/issues/193","id":125673493,"user":{"login":"jhedstrom","id":76833,"avatar_url":"https://avatars.githubusercontent.com/u/76833?v=3","gravatar_id":"","url":"https://api.github.com/users/jhedstrom","html_url":"https://github.com/jhedstrom","followers_url":"https://api.github.com/users/jhedstrom/followers","following_url":"https://api.github.com/users/jhedstrom/following{/other_user}","gists_url":"https://api.github.com/users/jhedstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/jhedstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhedstrom/subscriptions","organizations_url":"https://api.github.com/users/jhedstrom/orgs","repos_url":"https://api.github.com/users/jhedstrom/repos","events_url":"https://api.github.com/users/jhedstrom/events{/privacy}","received_events_url":"https://api.github.com/users/jhedstrom/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T16:35:09Z","updated_at":"2015-07-28T16:35:09Z","body":">But I think you can solve this by updating the dependencies and making sure you end up with the same guzzle version.\r\nI'd prefer this approach for the time being (simple and quick). In the future we may still need to create our own autoloader."}}