[HttpFoundation] Avoid TypeError when calling \SessionHandlerInterface::gc().

This commit is contained in:
Alexander M. Turek 2020-05-24 14:18:07 +02:00
parent 5233cb96f4
commit 12f734d8b3

View File

@ -72,9 +72,9 @@ class MarshallingSessionHandlerTest extends TestCase
$marshallingSessionHandler = new MarshallingSessionHandler($this->handler, $this->marshaller);
$this->handler->expects($this->once())->method('gc')
->with('maxlifetime')->willReturn(true);
->with(4711)->willReturn(true);
$marshallingSessionHandler->gc('maxlifetime');
$marshallingSessionHandler->gc(4711);
}
public function testRead()