public function hasInvokesRedis() { $this->redis->expects($this->once())->method('exists')->with('Foo_Cache:entry:foo')->will($this->returnValue(true)); $this->assertEquals(true, $this->backend->has('foo')); }