예제 #1
0
 /**
  * Test orActionIs filter.
  *
  * @dataProvider provideActions()
  */
 public function testOrActionIs($action1, $action2, $action3)
 {
     $filter = new Filter();
     $filter->orSub(new MockedFilter(false));
     $filter->orActionIs($action1)->orActionIs($action2);
     $item = new MockedAbstractItem($action1);
     $this->assertEquals(true, $filter->accepts($item));
     $item2 = new MockedAbstractItem($action2);
     $this->assertEquals(true, $filter->accepts($item2));
     $item3 = new MockedAbstractItem($action3);
     $this->assertEquals(false, $filter->accepts($item3));
 }