isRunning() public static méthode

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);
 }
Exemple #2
0
 public function tearDown()
 {
     if (ErrorHandler::isRunning()) {
         ErrorHandler::stop();
     }
 }