04.
99 api/problem+json(s)
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
3 Comments
Hi,
I have an error in my testValidationErrors. When I add the assert ```$this->assertEquals('application/problem+json', $response->getHeader('Content-Type'));```
My test fails with ```Array (...) does not match expected type "string".```
I'm not sure to understand why?
What do you think?
Thx Julien
Ok I reply myself, I guess it's a Guzzle 6 update stuff... It seems that the getHeader('Content-Type') is an array. So I added [0] to fetch the first... It works. Sorry
Hey julien moulis
Don't worry ;) I'm glad that you could fix your problem.
Sometimes is handy to dump some variables inside your tests, so you can actually see what's going on.
Have a nice day
"Houston: no signs of life"
Start the conversation!