Skip to content

Conversation

nicolas-grekas
Copy link
Member

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #16112
License MIT
Doc PR -

See sebastianbergmann/phpunit#1821

@@ -102,7 +102,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())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exactly(2) is wrong, and in fact, we don't care about the count, but only about the final result of the vote

@nicolas-grekas
Copy link
Member Author

Resubmitting on 2.3

@nicolas-grekas nicolas-grekas deleted the fixmock branch October 6, 2015 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants