AssetManagerTest\Cache\FilePathCacheTest::testRemoveSuccess PHP Method

testRemoveSuccess() public method

public testRemoveSuccess ( )
    public function testRemoveSuccess()
    {
        $time = time();
        $sentence = 'I am, what I am. Cached data, please don\'t hate, ' . 'for we are all equals. Except you, you\'re a dick.';
        $base = '/tmp/_cachetest.' . $time . '/';
        $cache = new FilePathCache($base, 'bacon.' . $time);
        $cache->set('bacon', $sentence);
        $this->assertTrue($cache->remove('bacon'));
    }