StackFormation\Tests\CacheTest::storeInCache PHP Метод

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

public storeInCache ( )
    public function storeInCache()
    {
        $result = $this->cache->has('test');
        $this->assertFalse($result);
        $this->cache->set('test', '42');
        $result = $this->cache->has('test');
        $this->assertTrue($result);
        $result = $this->cache->get('test');
        $this->assertEquals('42', $result);
        $this->cache->delete('test');
        $result = $this->cache->has('test');
        $this->assertFalse($result);
    }