umpirsky / centipede

:sparkler: The Simplest automated testing tool on Earth.
MIT License
141 stars 15 forks source link

Use a FutureResponse object in the run command #14

Closed gnutix closed 9 years ago

gnutix commented 9 years ago

When running bin/centipede run http://mywebsite.com/, I get the following error (using dev-master version of centipede, centipede-crawler and react/promise packages).

PHP Catchable fatal error: Argument 2 passed to Centipede\Console\Command\Run::Centipede\Console\Command\{closure}() must be an instance of Symfony\Component\BrowserKit\Response, instance of GuzzleHttp\Message\FutureResponse given, called in /pipeline/build/vendor/umpirsky/centipede-crawler/src/Centipede/Crawler.php on line 91 and defined in /pipeline/build/vendor/umpirsky/centipede/src/Centipede/Console/Command/Run.php on line 30

This commit fixes the issue.

umpirsky commented 9 years ago

@gnutix How did you install centipede?

umpirsky commented 9 years ago

@gnutix Oh, ok, it gets latest centipede crawler, I must start tagging. Thanks! :+1:

gnutix commented 9 years ago

Tagging would be great, indeed :) Thanks for merging !