WriteSafeSessionHandler example


  protected $sessionHandler;

  /** * {@inheritdoc} */
  protected function setUp(): void {
    parent::setUp();

    $this->wrappedSessionHandler = $this->createMock('SessionHandlerInterface');
    $this->sessionHandler = new WriteSafeSessionHandler($this->wrappedSessionHandler);
  }

  /** * Tests creating a WriteSafeSessionHandler with default arguments. * * @covers ::__construct * @covers ::isSessionWritable * @covers ::write */
  public function testConstructWriteSafeSessionHandlerDefaultArgs() {
    $session_id = 'some-id';
    
Home | Imprint | This part of the site doesn't use cookies.