2 require_once 'PHPUnit/Framework/TestCase.php';
4 class Issue578Test extends PHPUnit_Framework_TestCase
6 public function testNoticesDoublePrintStackTrace()
8 $this->iniSet('error_reporting', E_ALL | E_NOTICE);
9 trigger_error('Stack Trace Test Notice', E_NOTICE);
12 public function testWarningsDoublePrintStackTrace()
14 $this->iniSet('error_reporting', E_ALL | E_NOTICE);
15 trigger_error('Stack Trace Test Notice', E_WARNING);
18 public function testUnexpectedExceptionsPrintsCorrectly()
20 throw new Exception('Double printed exception');