Replies: 2 comments
-
I think it cannot deactivated. This is what it looks like to me when I look at For example, use $this->assertSame(Response::HTTP_OK, $client->getResponse()->getStatusCode());
//$this->assertResponseStatusCodeSame(Response::HTTP_OK); Or: try {
$this->assertResponseStatusCodeSame(Response::OK);
} catch (\Exception $e) {
$this->fail(
sprintf(
'Failed asserting that the Response status code is %s.',
$client->getResponse()->getStatusCode()
)
);
} |
Beta Was this translation helpful? Give feedback.
-
At time of writing this, since 7.1.0-BETA1, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there, I would like to disable the logging of the HTML response when a test fails. At the moment it's really unreadable if you have more than one test failing :(
Ideally I'd like to get only the response headers and that's it.
I have tried disabling the catchExceptions flag on the KernelBrowser client as suggested here but that doesn't work.
I am using simple-phpunit.
Any idea please ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions