/** * @dataProvider getAllStrategyTests */ public function testIsGrantedStrategies($maskStrategy, $aceMask, $requiredMask, $result) { $acl = $this->getAcl(); $acl->insertObjectAce($this->sid, $aceMask, 0, true, $maskStrategy); if (false === $result) { try { $this->strategy->isGranted($acl, array($requiredMask), array($this->sid)); $this->fail('The ACE is not supposed to match.'); } catch (NoAceFoundException $noAce) { } } else { $this->assertTrue($this->strategy->isGranted($acl, array($requiredMask), array($this->sid))); } }