gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

Issue578Test.php (573B)


      1 <?php
      2 class 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 }