File tree 1 file changed +6
-2
lines changed
src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ public function testGc()
127
127
*/
128
128
public function testValidateId ()
129
129
{
130
- $ mock = $ this ->getMockBuilder ([ ' SessionHandlerInterface ' , ' SessionUpdateTimestampHandlerInterface ' ] )->getMock ();
130
+ $ mock = $ this ->getMockBuilder (TestSessionHandler::class )->getMock ();
131
131
$ mock ->expects ($ this ->once ())
132
132
->method ('validateId ' );
133
133
@@ -142,7 +142,7 @@ public function testValidateId()
142
142
*/
143
143
public function testUpdateTimestamp ()
144
144
{
145
- $ mock = $ this ->getMockBuilder ([ ' SessionHandlerInterface ' , ' SessionUpdateTimestampHandlerInterface ' ] )->getMock ();
145
+ $ mock = $ this ->getMockBuilder (TestSessionHandler::class )->getMock ();
146
146
$ mock ->expects ($ this ->once ())
<
74E1
/td>147
147
->method ('updateTimestamp ' )
148
148
->willReturn (false );
@@ -156,3 +156,7 @@ public function testUpdateTimestamp()
156
156
$ this ->proxy ->updateTimestamp ('id ' , 'data ' );
157
157
}
158
158
}
159
+
160
+ abstract class TestSessionHandler implements \SessionHandlerInterface, \SessionUpdateTimestampHandlerInterface
161
+ {
162
+ }
You can’t perform that action at this time.
0 commit comments