Exemplo n.º 1
0
 public function test_add_and_get_error_handler()
 {
     $handler = new ErrorHandler();
     $this->assertEquals(0, count($handler->getRecoverableErrorHandlers()));
     $this->assertEquals(0, count($handler->getFatalErrorHandlers()));
     $handler->addErrorHandler($this->getNoop());
     $this->assertEquals(1, count($handler->getRecoverableErrorHandlers()));
     $this->assertEquals(1, count($handler->getFatalErrorHandlers()));
 }