isRunning() public static method

Returns the state of the ErrorHandler, indicating whether or not custom error/exception handers have been regsitered.
public static isRunning ( )
 public function testRun()
 {
     ErrorHandler::stop();
     $this->assertEqual(ErrorHandler::isRunning(), false);
     ErrorHandler::run();
     $this->assertEqual(ErrorHandler::isRunning(), true);
     $result = ErrorHandler::run();
     $this->assertEqual(ErrorHandler::isRunning(), true);
     $this->assertNull($result);
     ErrorHandler::stop();
     $this->assertEqual(ErrorHandler::isRunning(), false);
 }
Beispiel #2
0
 public function tearDown()
 {
     if (ErrorHandler::isRunning()) {
         ErrorHandler::stop();
     }
 }