Skip to content

Commit

Permalink
[Bugfix] MemcachedSessionHandler::close() must close connection
Browse files Browse the repository at this point in the history
  • Loading branch information
grachevko committed Jan 6, 2019
1 parent 7f04e55 commit 2bd3c98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Expand Up @@ -62,7 +62,7 @@ public function __construct(\Memcached $memcached, array $options = array())
*/
public function close()
{
return true;
return $this->memcached->quit();
}

/**
Expand Down
Expand Up @@ -63,6 +63,11 @@ public function testOpenSession()

public function testCloseSession()
{
$this->memcached
->expects($this->once())
->method('quit')
->with(true);

$this->assertTrue($this->storage->close());
}

Expand Down

0 comments on commit 2bd3c98

Please sign in to comment.