You are here

public function MemcachedSessionHandlerTest::testWriteSession in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler\MemcachedSessionHandlerTest::testWriteSession()

File

vendor/symfony/http-foundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php, line 72

Class

MemcachedSessionHandlerTest

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler

Code

public function testWriteSession() {
  $this->memcached
    ->expects($this
    ->once())
    ->method('set')
    ->with(self::PREFIX . 'id', 'data', $this
    ->equalTo(time() + self::TTL, 2))
    ->will($this
    ->returnValue(true));
  $this
    ->assertTrue($this->storage
    ->write('id', 'data'));
}