We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de9316b commit a474a4eCopy full SHA for a474a4e
tests/Pest.php
@@ -95,9 +95,13 @@ function runWithStdin($stdinContent, $arguments)
95
$tempFile = tempnam(sys_get_temp_dir(), 'pint_test_stdin_');
96
file_put_contents($tempFile, $stdinContent);
97
98
- $pintExecutable = file_exists('./pint') ? './pint' : 'vendor/bin/pint';
+ $isWindows = DIRECTORY_SEPARATOR === '\\';
99
100
- $command = [$pintExecutable];
+ if ($isWindows) {
101
+ $command = [PHP_BINARY, 'pint'];
102
+ } else {
103
+ $command = ['./pint'];
104
+ }
105
106
if (isset($arguments['path'])) {
107
$paths = is_array($arguments['path']) ? $arguments['path'] : [$arguments['path']];
0 commit comments