public function testParseRules()
 {
     $this->markTestSkipped();
     $ARQP = new ARQueryRulesParser($this->ER, $this->attributes, $this->IMs);
     $data = $ARQP->parseRules();
     $this->assertEquals(1, count($data));
 }
 protected function parseARQueryRules()
 {
     $array['rules'] = array();
     if ($TS = $this->XPath->evaluate('/arb:ARBuilder/@taskState')->item(0)) {
         $array['taskState'] = $TS->value;
     } else {
         $array['taskState'] = self::$FINISHED_TASK_STATE;
     }
     $ARQParser = new ARQueryRulesParser($this->ER, $this->attributes, $this->interestMeasures);
     foreach ($ARQParser->parseRules() as $r) {
         array_push($array['rules'], $r->toArray());
     }
     return $array;
 }