public function testParseRules2() { $ER = $this->loader->load(ERASSOCIATIONRULES2); $ARP = new AssociationRulesParser($ER, $this->attributes, $this->IMs); $data = $ARP->parseRules(); $this->assertEquals(1, count($data)); }
protected function parseAssociationRules() { $array['rules'] = array(); if ($TS = $this->XPath->evaluate('//TaskSetting/Extension/TaskState')->item(0)) { $array['taskState'] = $TS->nodeValue; } else { $array['taskState'] = self::$FINISHED_TASK_STATE; } $ARParser = new AssociationRulesParser($this->ER, $this->attributes, $this->interestMeasures); foreach ($ARParser->parseRules() as $r) { array_push($array['rules'], $r->toArray()); } return $array; }