public function MemcacheSessionHandlerTest::testWriteSession in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/Session/Storage/Handler/MemcacheSessionHandlerTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler\MemcacheSessionHandlerTest::testWriteSession()
File
- vendor/
symfony/ http-foundation/ Tests/ Session/ Storage/ Handler/ MemcacheSessionHandlerTest.php, line 73
Class
Namespace
Symfony\Component\HttpFoundation\Tests\Session\Storage\HandlerCode
public function testWriteSession() {
$this->memcache
->expects($this
->once())
->method('set')
->with(self::PREFIX . 'id', 'data', 0, $this
->equalTo(time() + self::TTL, 2))
->will($this
->returnValue(true));
$this
->assertTrue($this->storage
->write('id', 'data'));
}