public function testParseDataARQueryRules() { $this->markTestSkipped(); $ERP = new RulesParser($this->ERARQueryRules, $this->attributes, $this->IMs); $data = $ERP->parseData(); $this->assertEquals('Solved', $data['existingRules']['taskState']); $this->assertEquals(1, count($data['existingRules']['rules'])); }
public function parseData() { $DDParser = new DataDescriptionParser($this->DD); $this->data = array_merge_recursive($this->data, $DDParser->parseData()); $this->data['FLs'] = array(); foreach ($this->FLs as $FL) { $FLParser = new FeatureListParser($FL, $this->lang); array_push($this->data['FLs'], $FLParser->parseData()); } usort($this->data['FLs'], array('IZI\\Parser\\DataParser', 'sortFLs')); $FGCParser = new FieldGroupConfigParser($this->FGC, $this->data['DD'], $this->data['FLs'][0]['BBA']['coefficients'], $this->lang); $this->data['FGC'] = $FGCParser->parseConfig(); $ERParser = new RulesParser($this->ER, $this->data['DD'], $this->data['FLs'][0]['interestMeasures']); $this->data = array_merge_recursive($this->data, $ERParser->parseData()); $ETreeParser = new ETreeParser($this->ETree); $this->data = array_merge_recursive($this->data, $ETreeParser->parseData()); return $this->data; }