8000 minor #59379 [MonologBridge] revert test changes (xabbuh) · symfony/symfony@697a15e · GitHub
[go: up one dir, main page]

Skip to content

Commit 697a15e

Browse files
minor #59379 [MonologBridge] revert test changes (xabbuh)
This PR was merged into the 7.3 branch. Discussion ---------- [MonologBridge] revert test changes | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT I fail to see why these changes have been done in #58559. Commits ------- 71d8ec0 revert test changes
2 parents 17d6c3d + 71d8ec0 commit 697a15e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Symfony/Bridge/Monolog/Tests/Handler/ChromePhpHandlerTest.php

+2-6
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,15 @@ class ChromePhpHandlerTest extends TestCase
2222
{
2323
public function testOnKernelResponseShouldNotTriggerDeprecation()
2424
{
25+
$this->expectNotToPerformAssertions();
26+
2527
$request = Request::create('/');
2628
$request->headers->remove('User-Agent');
2729

2830
$response = new Response('foo');
2931
$event = new ResponseEvent($this->createMock(HttpKernelInterface::class), $request, HttpKernelInterface::MAIN_REQUEST, $response);
3032

31-
$error = null;
32-
set_error_handler(function ($type, $message) use (&$error) { $error = $message; }, \E_DEPRECATED);
33-
3433
$listener = new ChromePhpHandler();
3534
$listener->onKernelResponse($event);
36-
restore_error_handler();
37-
38-
$this->assertNull($error);
3935
}
4036
}

0 commit comments

Comments
 (0)
0