Pinq\Tests\Integration\Caching\CacheTest::testThatContainsReturnsTrueForCacheValueAndFalseForNotContainedKey PHP Метод

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

    public function testThatContainsReturnsTrueForCacheValueAndFalseForNotContainedKey()
    {
        $this->cache->save('1', true);
        $this->cache->save('2', true);
        $this->assertTrue($this->cache->contains('1'));
        $this->assertTrue($this->cache->contains('2'));
        $this->assertFalse($this->cache->contains('3'));
        $this->cache->remove('1');
        $this->cache->remove('2');
        $this->assertFalse($this->cache->contains('1'));
        $this->assertFalse($this->cache->contains('2'));
    }