decide() public method

public decide ( Symfony\Component\Security\Authentication\Token\TokenInterface $token, array $attributes, $object = null )
$token Symfony\Component\Security\Authentication\Token\TokenInterface
$attributes array
 /**
  * @dataProvider getStrategyTests
  */
 public function testStrategies($strategy, $voters, $allowIfAllAbstainDecisions, $allowIfEqualGrantedDeniedDecisions, $expected)
 {
     $token = $this->getMock('Symfony\\Component\\Security\\Authentication\\Token\\TokenInterface');
     $manager = new AccessDecisionManager($voters, $strategy, $allowIfAllAbstainDecisions, $allowIfEqualGrantedDeniedDecisions);
     $this->assertSame($expected, $manager->decide($token, array('ROLE_FOO')));
 }