Skip to content

Commit 352bdcb

Browse files
committed
Merge branch '2.8'
* 2.8: [Console] Add domain exceptions to replace generic exceptions Implement service-based Resource (cache) validation
2 parents 557fef6 + a919e7d commit 352bdcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
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
{

0 commit comments

Comments
 (0)