tests: Make sure we close all output-buffer we started beforehand

This commit is contained in:
Markus Staab
2019-06-24 16:00:23 +02:00
committed by GitHub
parent 38ad9c4656
commit 3eb5a59ebd
@@ -63,10 +63,13 @@ class PlainTextHandlerTest extends TestCase
$run->register();
$exception = $exception ?: $this->getException();
ob_start();
$run->handleException($exception);
return ob_get_clean();
try {
ob_start();
$run->handleException($exception);
} finally {
return ob_get_clean();
}
}
/**