PopTest\Cache\CacheTest::testSetAndGetLifetime PHP Method

testSetAndGetLifetime() public method

    public function testSetAndGetLifetime()
    {
        $c = Cache::factory(new File(__DIR__ . '/../tmp'), 30);
        $c->setLifetime(30);
        $this->assertEquals(30, $c->getLifetime());
    }