Esempio n. 1
0
 public function testIsScenarioMatchFilter()
 {
     $scenario = new ScenarioNode(null, array(), array(), null, 2);
     $filter = new LineFilter(2);
     $this->assertTrue($filter->isScenarioMatch($scenario));
     $filter = new LineFilter(1);
     $this->assertFalse($filter->isScenarioMatch($scenario));
     $filter = new LineFilter(5);
     $this->assertFalse($filter->isScenarioMatch($scenario));
     $outline = new OutlineNode(null, array(), array(), new ExampleTableNode(array(), null), null, 20);
     $filter = new LineFilter(5);
     $this->assertFalse($filter->isScenarioMatch($outline));
     $filter = new LineFilter(20);
     $this->assertTrue($filter->isScenarioMatch($outline));
 }
 public function testIsScenarioMatchFilter()
 {
     $scenario = new Node\ScenarioNode(null, 2);
     $filter = new LineFilter(2);
     $this->assertTrue($filter->isScenarioMatch($scenario));
     $filter = new LineFilter(1);
     $this->assertFalse($filter->isScenarioMatch($scenario));
     $filter = new LineFilter(5);
     $this->assertFalse($filter->isScenarioMatch($scenario));
     $outline = new Node\OutlineNode(null, 20);
     $filter = new LineFilter(5);
     $this->assertFalse($filter->isScenarioMatch($outline));
     $filter = new LineFilter(20);
     $this->assertTrue($filter->isScenarioMatch($outline));
 }