[PHPUnitBridge] PHP 5.3 compatibility

This commit is contained in:
Christian Flothmann 2016-06-16 00:19:51 +02:00
parent e9e0975f22
commit e65ec65515
1 changed files with 8 additions and 2 deletions

View File

@ -53,8 +53,14 @@ final class ErrorAssert
});
$testCode();
} finally {
restore_error_handler();
} catch (\Exception $e) {
} catch (\Throwable $e) {
}
restore_error_handler();
if (isset($e)) {
throw $e;
}
\PHPUnit_Framework_Assert::assertCount(count($expectedMessages), $triggeredMessages);