Metaphore\Tests\CacheTest::testCachesValue PHP Метод

testCachesValue() публичный Метод

public testCachesValue ( )
    public function testCachesValue()
    {
        $cache = new Cache(new MockStore());
        $key = "gago5";
        $result = "Fernando Rubén Gago plays as a defensive midfielder for Boca Juniors and the Argentine team.";
        $actualResult = $cache->cache($key, $this->createFunc($result), 30);
        $this->assertSame($result, $actualResult);
        $this->assertSame($result, $cache->getValue($key)->getResult());
    }