Example #1
0
 public function testIgnoredDefinition()
 {
     $def1 = new Dummy('1');
     $def1->ignore();
     $collection = new Collection($this->logger);
     $collection->add($def1);
     $errors = $collection->validate();
     $this->assertEquals(0, count($errors));
     $actionChain = $collection->getActionChain();
     $this->assertEquals(0, count($actionChain));
 }