From 4c7f67f1b4ad25b9df9f8cd422c8e8267551610b Mon Sep 17 00:00:00 2001 From: Anton Grebnev Date: Fri, 14 Oct 2011 13:10:48 +0400 Subject: [PATCH] ErrorHandlerTest modified for $_SESSION var passes --- tests/exception/ErrorHandlerTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/exception/ErrorHandlerTest.php b/tests/exception/ErrorHandlerTest.php index f4cc82d..37cfb82 100644 --- a/tests/exception/ErrorHandlerTest.php +++ b/tests/exception/ErrorHandlerTest.php @@ -42,11 +42,15 @@ class ErrorHandlerTest extends PHPUnit_Framework_TestCase trigger_error("test error", E_USER_ERROR); } + /** + * @TODO: ErrorHandler->wrapTrace() not used + */ public function testShowDebug() { try { throw new ErrorException("test error", E_USER_ERROR); } catch (ErrorException $e) { + $_SESSION['some'] = 'value'; $result = ErrorHandler::showDebug($e); $this->assertNotEmpty($result); $this->assertStringStartsWith('', $result);