Skip to content

Commit 7ad89bb

Browse files
Merge branch '4.4' into 5.0
* 4.4: Connect to RedisCluster with password auth Fix PHPUnit 8.5 deprecations. Fix EmailHeaderSame to make use of decoded value Allow same middleware to be used multiple times with different arguments
2 parents bc0390f + 3675676 commit 7ad89bb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Tests/Session/Storage/Proxy/SessionHandlerProxyTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function testGc()
127127
*/
128128
public function testValidateId()
129129
{
130-
$mock = $this->getMockBuilder(['SessionHandlerInterface', 'SessionUpdateTimestampHandlerInterface'])->getMock();
130+
$mock = $this->getMockBuilder(TestSessionHandler::class)->getMock();
131131
$mock->expects($this->once())
132132
->method('validateId');
133133

@@ -142,7 +142,7 @@ public function testValidateId()
142142
*/
143143
public function testUpdateTimestamp()
144144
{
145-
$mock = $this->getMockBuilder(['SessionHandlerInterface', 'SessionUpdateTimestampHandlerInterface'])->getMock();
145+
$mock = $this->getMockBuilder(TestSessionHandler::class)->getMock();
146146
$mock->expects($this->once())
147147
->method('updateTimestamp')
148148
->willReturn(false);
@@ -156,3 +156,7 @@ public function testUpdateTimestamp()
156156
$this->proxy->updateTimestamp('id', 'data');
157157
}
158158
}
159+
160+
abstract class TestSessionHandler implements \SessionHandlerInterface, \SessionUpdateTimestampHandlerInterface
161+
{
162+
}

0 commit comments

Comments
 (0)