public function testGetCachedStaticMethod() { $this->assertCacheBackendSetUp(); TestClass::resetStaticMethodCalls(); $f = array('CachalotTest\\TestClass', 'staticMethod'); foreach ($this->getCachedTestCases() as $test => $data) { $this->assertEquals($data[1], static::$cache->getCached($f, $data, self::ttl)); $this->assertEquals($this->countHits('static-method', $test), TestClass::getStaticMethodCalls()); $this->assertEquals($data[1], static::$cache->getCached($f, $data, self::ttl)); $this->assertEquals($this->countHits('static-method', $test), TestClass::getStaticMethodCalls()); } }