You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying the same as the first example you have in your README.md file, calling $this->client->response->getBody()->getContent() returns "" in my test meaning the following does not work:
The main difference with mine is that I am assigning $body = $this->client->get('/'); as ::get calls ::request but ends with return (string)$this->response->getBody();.
Am I missing something or have the docs not been updated? I can PR on the fix in the docs providing I am not missing something first.
The text was updated successfully, but these errors were encountered:
It will be next week before I can investigate this. I don't particularly like having to fetch into a temporary $body variable. It sounds like something else may be going on.
Hi @craig-davis, no worries. If I can get chance I will clone and see what I can find if that helps, but I too am pretty stretched out with spare time at the moment.
When trying the same as the first example you have in your README.md file, calling
$this->client->response->getBody()->getContent()
returns""
in my test meaning the following does not work:Your example code:
We have our own version (replicated) of
WebTestCase
as we have our own config and setup process.To get it working, our test make-up is the following:
The main difference with mine is that I am assigning
$body = $this->client->get('/');
as::get
calls::request
but ends withreturn (string)$this->response->getBody();
.Am I missing something or have the docs not been updated? I can PR on the fix in the docs providing I am not missing something first.
The text was updated successfully, but these errors were encountered: