public function testGetCachedMethod() { $this->assertCacheBackendSetUp(); $testObject = new TestClass(); foreach ($this->getCachedTestCases() as $test => $data) { $this->assertEquals($data[1], static::$cache->getCached(array($testObject, 'method'), $data, self::ttl)); $this->assertEquals($this->countHits('method', $test), $testObject->getMethodCalls()); $this->assertEquals($data[1], static::$cache->getCached(array($testObject, 'method'), $data, self::ttl)); $this->assertEquals($this->countHits('method', $test), $testObject->getMethodCalls()); } }