public function testGetErrorContainerFromMsgWithoutProperty() { $instance = new ProcessingErrorMsgHandler(DIWikiPage::newFromText(__METHOD__)); $container = $instance->getErrorContainerFromMsg('foo'); $expected = array('propertyCount' => 1, 'propertyKeys' => array('_ERRT')); $this->semanticDataValidator->assertThatPropertiesAreSet($expected, $container->getSemanticData()); }
private function addProcessingError($errors) { $processingErrorMsgHandler = new ProcessingErrorMsgHandler($this->parserData->getSubject()); foreach ($errors as $error) { $processingErrorMsgHandler->pushTo($this->parserData->getSemanticData(), $processingErrorMsgHandler->getErrorContainerFromMsg($error, new DIProperty('_ASK'))); } }