protected MockObject&\SessionHandlerInterface
$handler;
protected MockObject&MarshallerInterface
$marshaller;
protected function setUp(): void
{ $this->marshaller =
$this->
createMock(MarshallerInterface::
class);
$this->handler =
$this->
createMock(AbstractSessionHandler::
class);
} public function testOpen() { $marshallingSessionHandler =
new MarshallingSessionHandler($this->handler,
$this->marshaller
);
$this->handler->
expects($this->
once())->
method('open'
) ->
with('path', 'name'
)->
willReturn(true
);
$marshallingSessionHandler->
open('path', 'name'
);
} public function testClose() { $marshallingSessionHandler =
new MarshallingSessionHandler($this->handler,
$this->marshaller
);