File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ public function getNonStringValues()
511511 /**
512512 * @dataProvider getContainerParameterForRoute
513513 */
514- public function testCacheValiditiyWithContainerParameters ($ parameter )
514+ public function testCacheValidityWithContainerParameters ($ parameter )
515515 {
516516 $ cacheDir = sys_get_temp_dir ().\DIRECTORY_SEPARATOR .uniqid ('router_ ' , true );
517517
@@ -534,7 +534,11 @@ public function testCacheValiditiyWithContainerParameters($parameter)
534534
535535 $ router ->getMatcher (); // trigger cache build
536536
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+ }
538542
539543 $ this ->assertTrue ($ cache ->isFresh ());
540544 } finally {
You can’t perform that action at this time.
0 commit comments