File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ protected function setUp(): void
30
30
{
31
31
parent ::setUp ();
32
32
33
- $ this ->dumpPath = sys_get_temp_dir ().\ DIRECTORY_SEPARATOR . ' php_matcher. ' . uniqid ( ' CompiledUrlMatcher ' ). ' .php ' ;
33
+ $ this ->dumpPath = tempnam ( sys_get_temp_dir (), ' sf_matcher_ ' ) ;
34
34
}
35
35
36
36
protected function tearDown (): void
Original file line number Diff line number Diff line change @@ -35,7 +35,9 @@ protected function setUp(): void
35
35
$ this ->loader = $ this ->createMock (LoaderInterface::class);
36
36
$ this ->router = new Router ($ this ->loader , 'routing.yml ' );
37
37
38
- $ this ->cacheDir = sys_get_temp_dir ().\DIRECTORY_SEPARATOR .uniqid ('router_ ' , true );
38
+ $ this ->cacheDir = tempnam (sys_get_temp_dir (), 'sf_router_ ' );
39
+ unlink ($ this ->cacheDir );
40
+ mkdir ($ this ->cacheDir );
39
41
}
40
42
41
43
protected function tearDown (): void
You can’t perform that action at this time.
0 commit comments