Skip to content

Commit

Permalink
[Security\Core] Fix test failure after sebastianbergmann/phpunit#1821
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Oct 6, 2015
1 parent 1f2a511 commit 742547c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -96,7 +96,7 @@ public function getStrategiesWith2RolesTests()
protected function getVoterFor2Roles($token, $vote1, $vote2)
{
$voter = $this->getMock('Symfony\Component\Security\Core\Authorization\Voter\VoterInterface');
$voter->expects($this->exactly(2))
$voter->expects($this->any())
->method('vote')
->will($this->returnValueMap(array(
array($token, null, array('ROLE_FOO'), $vote1),
Expand Down

0 comments on commit 742547c

Please sign in to comment.