/**
  * test unix sockets.
  *
  * @return void
  */
 public function testParseServerStringUnix()
 {
     $Memcached = new TestMemcachedEngine();
     $result = $Memcached->parseServerString('unix:///path/to/memcachedd.sock');
     $this->assertEquals(['unix:///path/to/memcachedd.sock', 0], $result);
 }
 /**
  * test that durations greater than 30 days never expire
  *
  * @return void
  */
 public function testLongDurationEqualToZero()
 {
     $memcached = new TestMemcachedEngine();
     $memcached->init(['prefix' => 'Foo_', 'compress' => false, 'duration' => 50 * DAY]);
     $mock = $this->getMock('Memcached');
     $memcached->setMemcached($mock);
     $mock->expects($this->once())->method('set')->with('Foo_key', 'value', 0);
     $value = 'value';
     $memcached->write('key', $value);
 }