public function MemcacheddSessionHandlerTest::testWriteSession

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php, line 68

Class

MemcacheddSessionHandlerTest

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'));
}