Exemple #1
0
 public function testPrettyString()
 {
     $repo = new ArrayRepository();
     $repo->addPackage($p = $this->getPackage('foo', '2.1'));
     $this->pool->addRepository($repo);
     $ruleSet = new RuleSet();
     $literal = $p->getId();
     $rule = new Rule(array($literal), Rule::RULE_JOB_INSTALL, null);
     $ruleSet->add($rule, RuleSet::TYPE_JOB);
     $this->assertContains('JOB     : Install command rule (install foo 2.1)', $ruleSet->getPrettyString($this->pool));
 }