projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website]
/
vendor
/
symfony
/
config
/
Tests
/
ResourceCheckerConfigCacheTest.php
diff --git
a/vendor/symfony/config/Tests/ResourceCheckerConfigCacheTest.php
b/vendor/symfony/config/Tests/ResourceCheckerConfigCacheTest.php
index d39742ad88f8cf78c9ba02b45e14bbe495716443..bb29ac02a4efed8368f230963545327742c85af6 100644
(file)
--- a/
vendor/symfony/config/Tests/ResourceCheckerConfigCacheTest.php
+++ b/
vendor/symfony/config/Tests/ResourceCheckerConfigCacheTest.php
@@
-12,9
+12,9
@@
namespace Symfony\Component\Config\Tests;
use PHPUnit\Framework\TestCase;
namespace Symfony\Component\Config\Tests;
use PHPUnit\Framework\TestCase;
-use Symfony\Component\Config\Tests\Resource\ResourceStub;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Config\ResourceCheckerConfigCache;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Config\ResourceCheckerConfigCache;
+use Symfony\Component\Config\Tests\Resource\ResourceStub;
class ResourceCheckerConfigCacheTest extends TestCase
{
class ResourceCheckerConfigCacheTest extends TestCase
{
@@
-57,7
+57,7
@@
class ResourceCheckerConfigCacheTest extends TestCase
$this->assertFalse($cache->isFresh());
}
$this->assertFalse($cache->isFresh());
}
- public function testCacheIsFreshIfNo
c
heckerProvided()
+ public function testCacheIsFreshIfNo
C
heckerProvided()
{
/* 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. */
{
/* 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());
}
$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. */
public function testResourcesWithoutcheckersAreIgnoredAndConsideredFresh()
{
/* As in the previous test, but this time we have a resource. */