diff --git a/src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php b/src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php index 2ba6eb0749e4..603e0d59ae53 100644 --- a/src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php +++ b/src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php @@ -206,13 +206,13 @@ public function testFatalErrorHandlers($error, $class, $translatedMessage) $m->setAccessible(true); $m->invoke($handler, array($exceptionHandler, 'handle'), $error); + restore_error_handler(); $this->assertInstanceof($class, $exceptionHandler->e); // class names are case insensitive and PHP/HHVM do not return the same $this->assertSame(strtolower($translatedMessage), strtolower($exceptionHandler->e->getMessage())); $this->assertSame($error['type'], $exceptionHandler->e->getSeverity()); $this->assertSame($error['file'], $exceptionHandler->e->getFile()); $this->assertSame($error['line'], $exceptionHandler->e->getLine()); - restore_error_handler(); } public function provideFatalErrorHandlersData()