diff --git a/tests/Handlers/ErrorHandlerTest.php b/tests/Handlers/ErrorHandlerTest.php index 6d6df7fc1..f23acd6b3 100644 --- a/tests/Handlers/ErrorHandlerTest.php +++ b/tests/Handlers/ErrorHandlerTest.php @@ -296,7 +296,7 @@ public function testOptions() $exception->setAllowedMethods(['POST', 'PUT']); /** @var ResponseInterface $res */ - $res = $handler->__invoke($request, $exception, true, true, true); + $res = $handler->__invoke($request, $exception, true, false, true); $this->assertSame(200, $res->getStatusCode()); $this->assertTrue($res->hasHeader('Allow')); @@ -367,7 +367,7 @@ public function testDefaultErrorRenderer() $exception = new RuntimeException(); /** @var ResponseInterface $res */ - $res = $handler->__invoke($request, $exception, true, true, true); + $res = $handler->__invoke($request, $exception, true, false, true); $this->assertTrue($res->hasHeader('Content-Type')); $this->assertSame('text/html', $res->getHeaderLine('Content-Type'));