/** * {@inheritdoc} */ protected function decrementValue($key, $value) { return $this->driver->decrement($key, $value); }
/** @test */ public function memcachedShouldReceiveZeroEpireytime() { $driver = new MemcachedClient($mc = $this->getMemcached()); $mc->method('set')->with('item.success', 'data', 0)->willReturn(true); $this->assertTrue($driver->saveForever('item.success', 'data')); }