Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Call to undefined method Symfony\Component\HttpKernel\Client::setHeader #128

Closed
richstandbrook opened this issue Jun 2, 2015 · 1 comment
Labels

Comments

@richstandbrook
Copy link

I'm trying to set a header before sending a request and an exception is thrown.

PHP Fatal error:  Call to undefined method Symfony\Component\HttpKernel\Client::setHeader() in /Users/richard/…/vendor/behatch/contexts/src/HttpCall/Request.php on line 51

Heres a snippet from the scenario:

And I add "Content-Type" header equal to "application/json"
When I send a POST request to "/path" with body:
…
@sanpii
Copy link
Member

sanpii commented Jun 3, 2015

This is probably a duplicate of #119.

Can you test the browser-kit branch?

@sanpii sanpii added the bug label Jun 3, 2015
@sanpii sanpii closed this as completed Jun 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants