[Bugfix] MemcachedSessionHandler::close() must close connection
This commit is contained in:
parent
7f04e55856
commit
38a9d8b6a3
@ -62,7 +62,7 @@ class MemcachedSessionHandler extends AbstractSessionHandler
|
||||
*/
|
||||
public function close()
|
||||
{
|
||||
return true;
|
||||
return $this->memcached->quit();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -63,6 +63,12 @@ class MemcachedSessionHandlerTest extends TestCase
|
||||
|
||||
public function testCloseSession()
|
||||
{
|
||||
$this->memcached
|
||||
->expects($this->once())
|
||||
->method('quit')
|
||||
->will($this->returnValue(true))
|
||||
;
|
||||
|
||||
$this->assertTrue($this->storage->close());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user