Skip to content

Commit a035876

Browse files
committed
window
1 parent 8161e37 commit a035876

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/TestCase.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,22 @@ public function getExcludedPaths(): array
2222
];
2323
}
2424

25-
public function formatPath(string ...$values): string
25+
public function formatPath(string $value): string
2626
{
27-
return str_replace(['/', '\\'], DIRECTORY_SEPARATOR, implode('', $values));
27+
return implode(
28+
DIRECTORY_SEPARATOR,
29+
explode('/', $value)
30+
);
2831
}
2932

3033
public function getAppPath(): string
3134
{
32-
return __DIR__.'/src/app';
35+
return implode(DIRECTORY_SEPARATOR, [__DIR__, 'src', 'app']);
3336
}
3437

3538
public function getResourcesPath(): string
3639
{
37-
return __DIR__.'/src/resources';
40+
return implode(DIRECTORY_SEPARATOR, [__DIR__, 'src', 'resources']);
3841
}
3942

4043
public function getPhpDriver(): PhpDriver

0 commit comments

Comments
 (0)