Skip to content

Commit 0f45f78

Browse files
committed
add test temp path helper for windows garbage
1 parent 0cae091 commit 0f45f78

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/Platform.php

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ public static function cwd(string $path = ''): string
1515
return static::normalizePath(getcwd());
1616
}
1717

18+
public static function temp_test_path(string $path = ''): string
19+
{
20+
if ($path) {
21+
return static::cwd("tests/tmp/{$path}");
22+
}
23+
24+
return static::cwd('tests/tmp');
25+
}
26+
1827
public static function normalizePath(string $path): string
1928
{
2029
if ((new self)->isWindows()) {

0 commit comments

Comments
 (0)