Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Feb 10, 2021
1 parent fd03c44 commit ab1f0e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Tests/Routing/RouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ public function getNonStringValues()
/**
* @dataProvider getContainerParameterForRoute
*/
public function testCacheValiditiyWithContainerParameters($parameter)
public function testCacheValidityWithContainerParameters($parameter)
{
$cacheDir = sys_get_temp_dir().\DIRECTORY_SEPARATOR.uniqid('router_', true);

Expand All @@ -534,7 +534,11 @@ public function testCacheValiditiyWithContainerParameters($parameter)

$router->getMatcher(); // trigger cache build

$cache = new ResourceCheckerConfigCache($cacheDir.\DIRECTORY_SEPARATOR.'UrlMatcher.php', $resourceCheckers);
$cache = new ResourceCheckerConfigCache($cacheDir.\DIRECTORY_SEPARATOR.'url_matching_routes.php', $resourceCheckers);

if (!$cache->isFresh()) {
$cache = new ResourceCheckerConfigCache($cacheDir.\DIRECTORY_SEPARATOR.'UrlMatcher.php', $resourceCheckers);
}

$this->assertTrue($cache->isFresh());
} finally {
Expand Down

0 comments on commit ab1f0e9

Please sign in to comment.