/** * test case */ public function testStartDispatch() { $this->errorHandler->onStartDispatch(); restore_error_handler(); $this->assertTrue($this->errorHandler->isRegisteredErrorHandler()); $this->assertArrayCount(2, $this->errorHandler->getOrigErrorHandler()); }