Skip to content

Commit c141337

Browse files
Merge branch '5.4' into 6.2
* 5.4: [Tests] Remove occurrences of `withConsecutive()` Fix support binary values in parameters. [Dotenv] Improve Dotenv::usePutenv phpdoc
2 parents ad421ff + a801d52 commit c141337

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Tests/Authorization/AccessDecisionManagerTest.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,17 @@ public function testCacheableVotersWithMultipleAttributes()
118118
$voter
119119
->expects($this->exactly(2))
120120
->method('supportsAttribute')
121-
->withConsecutive(['foo'], ['bar'])
122-
->willReturnOnConsecutiveCalls(false, true);
121+
->willReturnCallback(function (...$args) {
122+
static $series = [
123+
[['foo'], false],
124+
[['bar'], true],
125+
];
126+
127+
[$expectedArgs, $return] = array_shift($series);
128+
$this->assertSame($expectedArgs, $args);
129+
130+
return $return;
131+
});
123132
$voter
124133
->expects($this->once())
125134
->method('supportsType')

0 commit comments

Comments
 (0)