X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fconfig%2FTests%2FResourceCheckerConfigCacheTest.php;fp=vendor%2Fsymfony%2Fconfig%2FTests%2FResourceCheckerConfigCacheTest.php;h=371c7baa1cc7d6f59c3cdfef5a3c73009609692f;hp=d39742ad88f8cf78c9ba02b45e14bbe495716443;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/symfony/config/Tests/ResourceCheckerConfigCacheTest.php b/vendor/symfony/config/Tests/ResourceCheckerConfigCacheTest.php index d39742ad8..371c7baa1 100644 --- a/vendor/symfony/config/Tests/ResourceCheckerConfigCacheTest.php +++ b/vendor/symfony/config/Tests/ResourceCheckerConfigCacheTest.php @@ -57,7 +57,7 @@ class ResourceCheckerConfigCacheTest extends TestCase $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. */ @@ -65,6 +65,12 @@ class ResourceCheckerConfigCacheTest extends TestCase $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. */