Ejemplo n.º 1
0
 public function testBuildSet()
 {
     $identifier = 'foobar';
     $data = ['identifier' => $identifier, 'rule' => ['name' => 'and']];
     $this->ruleLibrary->add('and', 'Ve\\LogicProcessor\\Rule\\AndRule');
     $set = $this->builder->buildRuleSet($data);
     $this->assertInstanceOf('Ve\\LogicProcessor\\RuleSet', $set);
     $this->assertEquals($identifier, $set->getIdentifier());
 }
 /**
  * @expectedException InvalidArgumentException
  */
 public function testGetInvalidInstance()
 {
     $this->library->getInstance('not here');
 }