/** * test case */ public function testRegisterErrorHandler() { $this->errorHandler->registerErrorHandler(null); restore_error_handler(); $this->assertEquals(E_ALL | E_STRICT, $this->errorHandler->getErrorLevel()); $this->errorHandler->registerErrorHandler(E_ALL); restore_error_handler(); $this->assertEquals(E_ALL, $this->errorHandler->getErrorLevel()); $this->assertTrue($this->errorHandler->isRegisteredErrorHandler()); $this->assertArrayCount(2, $this->errorHandler->getOrigErrorHandler()); }