Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behat: PHP Fatal error #25

Open
ghaith99 opened this issue Apr 15, 2020 · 0 comments
Open

Behat: PHP Fatal error #25

ghaith99 opened this issue Apr 15, 2020 · 0 comments

Comments

@ghaith99
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant