build-apis-you-wont-hate
build-apis-you-wont-hate copied to clipboard
Behat: PHP Fatal error
Behat Config
default:
context:
parameters:
base_url: http://67.205.138.216:80
~ ~
Running the server
root@Box:~/build-apis-you-wont-hate/chapter6# jobs
[1]+ Running sudo php artisan serve --host 67.205.138.216 --port 80 &
Running Behat
root@Box:~/build-apis-you-wont-hate/chapter6# behat -c app/tests/behat/behat-dev.yml
Feature: Places
Scenario: Returning a collection of places # features/places.feature:3
PHP Fatal error: Uncaught TypeError: Argument 2 passed to GuzzleHttp\Adapter\StreamAdapter::createResponseObject() must be of the type array, null given, called in /root/build-apis-you-wont-hate/chapter6/vendor/guzzlehttp/guzzle/src/Adapter/StreamAdapter.php on line 67 and defined in /root/build-apis-you-wont-hate/chapter6/vendor/guzzlehttp/guzzle/src/Adapter/StreamAdapter.php:71
Stack trace:
#0 /root/build-apis-you-wont-hate/chapter6/vendor/guzzlehttp/guzzle/src/Adapter/StreamAdapter.php(67): GuzzleHttp\Adapter\StreamAdapter->createResponseObject(Object(GuzzleHttp\Message\Request), NULL, Object(GuzzleHttp\Adapter\Transaction), Object(GuzzleHttp\Stream\Stream))
#1 /root/build-apis-you-wont-hate/chapter6/vendor/guzzlehttp/guzzle/src/Adapter/StreamAdapter.php(52): GuzzleHttp\Adapter\StreamAdapter->createResponse(Object(GuzzleHttp\Adapter\Transaction))
#2 /root/build-apis-you-wont-hate/chapter6/vendor/guzzlehttp/guzzle/src/Client.php(193): GuzzleHttp\Adapter\StreamAdapter->send(Object(GuzzleHttp\Adapter\Transaction))
#3 /root/bu in /root/build-apis-you-wont-hate/chapter6/vendor/guzzlehttp/guzzle/src/Adapter/StreamAdapter.php on line 71