From a0358765924b9dbaefc78c76ab5729b346ed0475 Mon Sep 17 00:00:00 2001 From: Quentin Gabriele Date: Sun, 17 Nov 2024 17:31:27 +0100 Subject: [PATCH] window --- tests/TestCase.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index b51f55e..fc834cc 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -22,19 +22,22 @@ public function getExcludedPaths(): array ]; } - public function formatPath(string ...$values): string + public function formatPath(string $value): string { - return str_replace(['/', '\\'], DIRECTORY_SEPARATOR, implode('', $values)); + return implode( + DIRECTORY_SEPARATOR, + explode('/', $value) + ); } public function getAppPath(): string { - return __DIR__.'/src/app'; + return implode(DIRECTORY_SEPARATOR, [__DIR__, 'src', 'app']); } public function getResourcesPath(): string { - return __DIR__.'/src/resources'; + return implode(DIRECTORY_SEPARATOR, [__DIR__, 'src', 'resources']); } public function getPhpDriver(): PhpDriver