Compare commits

..

3 Commits

Author SHA1 Message Date
nunomaduro 94f4f1ff48 release: 5.2.1 2026-09-17 12:41:10 +01:00
nunomaduro f0dd0d4d85 fix: link warning 2026-09-17 12:37:05 +01:00
Sergio Peris 4b4474dd77 Regression: Command gh not found on Windows - #1895 (#1922)
* fixes regression

* Update BaseRemote.php

Signed-off-by: Sergio Peris <22801379+sertxudev@users.noreply.github.com>

---------

Signed-off-by: Sergio Peris <22801379+sertxudev@users.noreply.github.com>
2026-09-17 11:49:34 +01:00
6 changed files with 17 additions and 11 deletions
+3 -3
View File
@@ -25,13 +25,13 @@
"pestphp/pest-plugin-arch": "^5.0.0",
"pestphp/pest-plugin-mutate": "^5.0.2",
"pestphp/pest-plugin-profanity": "^5.0.0",
"phpunit/phpunit": "^13.3.3",
"symfony/process": "^8.1.6"
"phpunit/phpunit": "^13.3.4",
"symfony/process": "^8.1.7"
},
"conflict": {
"filp/whoops": "<2.18.3",
"laravel/boost": "<2.6.0",
"phpunit/phpunit": ">13.3.3",
"phpunit/phpunit": ">13.3.4",
"sebastian/exporter": "<7.0.0",
"webmozart/assert": "<1.11.0"
},
+1 -1
View File
@@ -6,7 +6,7 @@ namespace Pest;
function version(): string
{
return '5.2.0';
return '5.2.1';
}
function testDirectory(string $file = ''): string
+2 -4
View File
@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace Pest\Plugins\Tia\Baselines;
use Pest\Plugins\Tia\WatchPatterns;
use Symfony\Component\Process\ExecutableFinder;
use Symfony\Component\Process\Process;
/**
@@ -38,10 +39,7 @@ abstract readonly class BaseRemote // @pest-arch-ignore-line
public function cliExists(): bool
{
$process = new Process(['which', $this->cliName()]);
$process->run();
return $process->isSuccessful();
return new ExecutableFinder()->find($this->cliName()) !== null;
}
public function cliAuthenticated(): bool
@@ -1,5 +1,5 @@
Pest Testing Framework 5.2.0.
Pest Testing Framework 5.2.1.
USAGE: pest <file> [options]
@@ -1,3 +1,3 @@
Pest Testing Framework 5.2.0.
Pest Testing Framework 5.2.1.
+9 -1
View File
@@ -519,13 +519,21 @@ final class Project
throw new RuntimeException(sprintf('Unable to create [%s].', $directory));
}
if (@link($from, $to) || @copy($from, $to)) {
if ((self::shareDevice($from, $directory) && @link($from, $to)) || @copy($from, $to)) {
return;
}
throw new RuntimeException(sprintf('Unable to mirror [%s] into [%s].', $from, $to));
}
private static function shareDevice(string $from, string $directory): bool
{
$source = @stat($from);
$target = @stat($directory);
return $source !== false && $target !== false && $source['dev'] === $target['dev'];
}
/**
* @return iterable<\SplFileInfo>
*/