Merge pull request #1189 from MrPunyapal/fix/breaking-in-windows

feat: update filename check in Configuration class
This commit is contained in:
Nuno Maduro
2024-07-09 15:58:14 +01:00
committed by GitHub

View File

@ -19,7 +19,7 @@ final class Configuration
public function __construct(
string $filename,
) {
$this->filename = str_ends_with($filename, '/Pest.php') ? dirname($filename) : $filename;
$this->filename = str_ends_with($filename, DIRECTORY_SEPARATOR.'Pest.php') ? dirname($filename) : $filename;
}
/**