mirror of
https://github.com/filp/whoops.git
synced 2026-08-31 12:38:10 +00:00
tests: Make sure we close all output-buffer we started beforehand
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user