Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b05489

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 fa8af6c + 5b211b1 commit 6b05489

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Tests/Adapter/MaxIdLengthAdapterTest.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,18 @@ public function testLongKey()
2626

2727
$cache->expects($this->exactly(2))
2828
->method('doHave')
29-
->withConsecutive(
30-
[$this->equalTo('----------:nWfzGiCgLczv3SSUzXL3kg:')],
31-
[$this->equalTo('----------:---------------------------------------')]
32-
)->willReturn(false);
29+
->willReturnCallback(function (...$args) {
30+
static $series = [
31+
['----------:nWfzGiCgLczv3SSUzXL3kg:'],
32+
['----------:---------------------------------------'],
33+
];
34+
35+
$expectedArgs = array_shift($series);
36+
$this->assertSame($expectedArgs, $args);
37+
38+
return false;
39+
})
40+
;
3341

3442
$cache->hasItem(str_repeat('-', 40));
3543
$cache->hasItem(str_repeat('-', 39));

0 commit comments

Comments
 (0)