8000 [Debug] Restoring error handler before assertions · alexpott/symfony@51fa3ef · GitHub
[go: up one dir, main page]

Skip to content

Commit 51fa3ef

Browse files
committed
[Debug] Restoring error handler before assertions
1 parent 29ccb30 commit 51fa3ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ public function testFatalErrorHandlers($error, $class, $translatedMessage)
206206
$m->setAccessible(true);
207207
$m->invoke($handler, array($exceptionHandler, 'handle'), $error);
208208

209+
restore_error_handler();
209210
$this->assertInstanceof($class, $exceptionHandler->e);
210211
// class names are case insensitive and PHP/HHVM do not return the same
211212
$this->assertSame(strtolower($translatedMessage), strtolower($exceptionHandler->e->getMessage()));
212213
$this->assertSame($error['type'], $exceptionHandler->e->getSeverity());
213214
$this->assertSame($error['file'], $exceptionHandler->e->getFile());
214215
$this->assertSame($error['line'], $exceptionHandler->e->getLine());
215-
restore_error_handler();
216216
}
217217

218218
public function provideFatalErrorHandlersData()

0 commit comments

Comments
 (0)
0