Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 4397d9d

Browse files
committed
Removed error handling in integration test
With updates from previous commit, no more error handling is required, as no deprecation notices are emitted.
1 parent 08bfae2 commit 4397d9d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

test/IntegrationTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,8 @@ public function testDefaultFinalHandlerCanEmitA404WhenNoMiddlewareMatches()
4949
$request = new ServerRequest([], [], 'https://example.com/foo', 'GET');
5050
$response = new Response();
5151

52-
set_error_handler(function ($errno, $errstr) {
53-
return false !== strstr($errstr, 'OriginalMessages');
54-
}, E_USER_DEPRECATED);
55-
5652
$app->run($request, $response);
5753

58-
restore_error_handler();
59-
6054
$this->assertInstanceOf(ResponseInterface::class, $this->response);
6155
$this->assertEquals(404, $this->response->getStatusCode());
6256
}
@@ -68,14 +62,8 @@ public function testInjectedFinalHandlerCanEmitA404WhenNoMiddlewareMatches()
6862
$request = new ServerRequest([], [], 'https://example.com/foo', 'GET');
6963
$response = new Response();
7064

71-
set_error_handler(function ($errno, $errstr) {
72-
return false !== strstr($errstr, 'OriginalMessages');
73-
}, E_USER_DEPRECATED);
74-
7565
$app->run($request, $response);
7666

77-
restore_error_handler();
78-
7967
$this->assertInstanceOf(ResponseInterface::class, $this->response);
8068
$this->assertEquals(404, $this->response->getStatusCode());
8169
}

0 commit comments

Comments
 (0)