Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fa8af6c + 5b211b1 commit 6b05489Copy full SHA for 6b05489
Tests/Adapter/MaxIdLengthAdapterTest.php
@@ -26,10 +26,18 @@ public function testLongKey()
26
27
$cache->expects($this->exactly(2))
28
->method('doHave')
29
- ->withConsecutive(
30
- [$this->equalTo('----------:nWfzGiCgLczv3SSUzXL3kg:')],
31
- [$this->equalTo('----------:---------------------------------------')]
32
- )->willReturn(false);
+ ->willReturnCallback(function (...$args) {
+ static $series = [
+ ['----------:nWfzGiCgLczv3SSUzXL3kg:'],
+ ['----------:---------------------------------------'],
33
+ ];
34
+
35
+ $expectedArgs = array_shift($series);
36
+ $this->assertSame($expectedArgs, $args);
37
38
+ return false;
39
+ })
40
+ ;
41
42
$cache->hasItem(str_repeat('-', 40));
43
$cache->hasItem(str_repeat('-', 39));
0 commit comments