File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Routing/Tests/Generator/Dumper Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function createCachePool(int $defaultLifetime = 0): CacheItemPoolInterfac
3030 $ this ->markTestSkipped ('APCu extension is required. ' );
3131 }
3232 if ('cli ' === \PHP_SAPI && !filter_var (\ini_get ('apc.enable_cli ' ), \FILTER_VALIDATE_BOOLEAN )) {
33- if ('testWithCliSapi ' !== $ this -> getName ()) {
33+ if ('testWithCliSapi ' !== ( method_exists ( $ this , ' name ' ) ? $ this -> name () : $ this -> getName () )) {
3434 $ this ->markTestSkipped ('apc.enable_cli=1 is required. ' );
3535 }
3636 }
Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ protected function setUp(): void
5252
5353 $ this ->routeCollection = new RouteCollection ();
5454 $ this ->generatorDumper = new CompiledUrlGeneratorDumper ($ this ->routeCollection );
55- $ this ->testTmpFilepath = sys_get_temp_dir ().'/php_generator. ' . $ this -> getName (). ' . php ' ;
56- $ this ->largeTestTmpFilepath = sys_get_temp_dir ().'/php_generator. ' . $ this -> getName (). ' . large.php ' ;
55+ $ this ->testTmpFilepath = sys_get_temp_dir ().'/php_generator.php ' ;
56+ $ this ->largeTestTmpFilepath = sys_get_temp_dir ().'/php_generator.large.php ' ;
5757 @unlink ($ this ->testTmpFilepath );
5858 @unlink ($ this ->largeTestTmpFilepath );
5959 }
You can’t perform that action at this time.
0 commit comments