Skip to content

Commit

Permalink
window
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Nov 17, 2024
1 parent 8161e37 commit a035876
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a035876

Please sign in to comment.