diff --git a/tests/ZendTest/Cache/Storage/Adapter/MemcachedTest.php b/tests/ZendTest/Cache/Storage/Adapter/MemcachedTest.php index ecdac3ecce4..02e2b8d824e 100644 --- a/tests/ZendTest/Cache/Storage/Adapter/MemcachedTest.php +++ b/tests/ZendTest/Cache/Storage/Adapter/MemcachedTest.php @@ -79,6 +79,22 @@ public function testOptionsSetServers() $this->assertEquals($memcached->getOptions()->getServers(), $servers); } + public function testLibOptionsSet() + { + $options = new Cache\Storage\Adapter\MemcachedOptions(); + + $options->setLibOptions(array( + 'COMPRESSION' => false + )); + + $this->assertEquals($options->getLibOption(\Memcached::OPT_COMPRESSION), false); + + $memcached = new Cache\Storage\Adapter\Memcached($options); + $this->assertEquals($memcached->getOptions()->getLibOptions(), array( + \Memcached::OPT_COMPRESSION => false + )); + } + public function testNoOptionsSetsDefaultServer() { $memcached = new Cache\Storage\Adapter\Memcached();