Skip to content

Commit f03340c

Browse files
mpdudefabpot
authored andcommitted
Implement service-based Resource (cache) validation
1 parent 5f026ce commit f03340c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/TranslatorCacheTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Translation\Tests;
1313

14-
use Symfony\Component\Config\Resource\ResourceInterface;
14+
use Symfony\Component\Config\Resource\SelfCheckingResourceInterface;
1515
use Symfony\Component\Translation\Loader\ArrayLoader;
1616
use Symfony\Component\Translation\Loader\LoaderInterface;
1717
use Symfony\Component\Translation\Translator;
@@ -228,7 +228,7 @@ public function testPrimaryAndFallbackCataloguesContainTheSameMessagesRegardless
228228

229229
public function testRefreshCacheWhenResourcesAreNoLongerFresh()
230230
{
231-
$resource = $this->getMock('Symfony\Component\Config\Resource\ResourceInterface');
231+
$resource = $this->getMock('Symfony\Component\Config\Resource\SelfCheckingResourceInterface');
232232
$loader = $this->getMock('Symfony\Component\Translation\Loader\LoaderInterface');
233233
$resource->method('isFresh')->will($this->returnValue(false));
234234
$loader
@@ -281,7 +281,7 @@ private function createFailingLoader()
281281
}
282282
}
283283

284-
class StaleResource implements ResourceInterface
284+
class StaleResource implements SelfCheckingResourceInterface
285285
{
286286
public function isFresh($timestamp)
287287
{

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"require-dev": {
2222
"symfony/phpunit-bridge": "~2.7|~3.0.0",
23-
"symfony/config": "~2.7",
23+
"symfony/config": "~2.8",
2424
"symfony/intl": "~2.4|~3.0.0",
2525
"symfony/yaml": "~2.2|~3.0.0",
2626
"psr/log": "~1.0"

0 commit comments

Comments
 (0)