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
30
30
$ this ->markTestSkipped ('APCu extension is required. ' );
31
31
}
32
32
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 () )) {
34
34
$ this ->markTestSkipped ('apc.enable_cli=1 is required. ' );
35
35
}
36
36
}
Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ protected function setUp(): void
52
52
53
53
$ this ->routeCollection = new RouteCollection ();
54
54
$ 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 ' ;
57
57
@unlink ($ this ->testTmpFilepath );
58
58
@unlink ($ this ->largeTestTmpFilepath );
59
59
}
You can’t perform that action at this time.
0 commit comments