[PHPUnitBridge] PHP 5.3 compatibility

This commit is contained in:
Christian Flothmann 2016-06-16 00:19:51 +02:00
parent e9e0975f22
commit e65ec65515

View File

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