mirror of
https://github.com/pestphp/pest.git
synced 2026-03-05 23:37:22 +01:00
Merge pull request #1189 from MrPunyapal/fix/breaking-in-windows
feat: update filename check in Configuration class
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user