1<?php 2class Issue578Test extends PHPUnit_Framework_TestCase 3{ 4 public function testNoticesDoublePrintStackTrace() 5 { 6 $this->iniSet('error_reporting', E_ALL | E_NOTICE); 7 trigger_error('Stack Trace Test Notice', E_NOTICE); 8 } 9 10 public function testWarningsDoublePrintStackTrace() 11 { 12 $this->iniSet('error_reporting', E_ALL | E_NOTICE); 13 trigger_error('Stack Trace Test Notice', E_WARNING); 14 } 15 16 public function testUnexpectedExceptionsPrintsCorrectly() 17 { 18 throw new Exception('Double printed exception'); 19 } 20} 21