$this->assertFalse($cache->isFresh());
}
- public function testCacheIsFreshIfNocheckerProvided()
+ public function testCacheIsFreshIfNoCheckerProvided()
{
/* For example in prod mode, you may choose not to run any checkers
at all. In that case, the cache should always be considered fresh. */
$this->assertTrue($cache->isFresh());
}
+ public function testCacheIsFreshIfEmptyCheckerIteratorProvided()
+ {
+ $cache = new ResourceCheckerConfigCache($this->cacheFile, new \ArrayIterator(array()));
+ $this->assertTrue($cache->isFresh());
+ }
+
public function testResourcesWithoutcheckersAreIgnoredAndConsideredFresh()
{
/* As in the previous test, but this time we have a resource. */