8000 Merge branch '3.4' into 4.4 · symfony/symfony@c971a27 · GitHub
[go: up one dir, main page]

Skip to content

Commit c971a27

Browse files
Merge branch '3.4' into 4.4
* 3.4: Fix PHPUnit 8.5 deprecations.
2 parents 8103b30 + 8c9f181 commit c971a27

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Symfony/Component/HttpFoundation/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())
< 74E1 /td>
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)
0