File tree 1 file changed +6
-2
lines changed
src/Symfony/Bundle/FrameworkBundle/Tests/Routing
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ public function getNonStringValues()
511
511
/**
512
512
* @dataProvider getContainerParameterForRoute
513
513
*/
514
- public function testCacheValiditiyWithContainerParameters ($ parameter )
514
+ public function testCacheValidityWithContainerParameters ($ parameter )
515
515
{
516
516
$ cacheDir = sys_get_temp_dir ().\DIRECTORY_SEPARATOR .uniqid ('router_ ' , true );
517
517
@@ -534,7 +534,11 @@ public function testCacheValiditiyWithContainerParameters($parameter)
534
534
535
535
$ router ->getMatcher (); // trigger cache build
536
536
537
- $ cache = new ResourceCheckerConfigCache ($ cacheDir .\DIRECTORY_SEPARATOR .'UrlMatcher.php ' , $ resourceCheckers );
537
+ $ cache = new ResourceCheckerConfigCache ($ cacheDir .\DIRECTORY_SEPARATOR .'url_matching_routes.php ' , $ resourceCheckers );
538
+
539
+ if (!$ cache ->isFresh ()) {
540
+ $ cache = new ResourceCheckerConfigCache ($ cacheDir .\DIRECTORY_SEPARATOR .'UrlMatcher.php ' , $ resourceCheckers );
541
+ }
538
542
539
543
$ this ->assertTrue ($ cache ->isFresh ());
540
544
} finally {
You can’t perform that action at this time.
0 commit comments