mirror of
https://github.com/pestphp/pest.git
synced 2026-12-06 15:52:16 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 94f4f1ff48 | |||
| f0dd0d4d85 | |||
| 4b4474dd77 |
+3
-3
@@ -25,13 +25,13 @@
|
|||||||
"pestphp/pest-plugin-arch": "^5.0.0",
|
"pestphp/pest-plugin-arch": "^5.0.0",
|
||||||
"pestphp/pest-plugin-mutate": "^5.0.2",
|
"pestphp/pest-plugin-mutate": "^5.0.2",
|
||||||
"pestphp/pest-plugin-profanity": "^5.0.0",
|
"pestphp/pest-plugin-profanity": "^5.0.0",
|
||||||
"phpunit/phpunit": "^13.3.3",
|
"phpunit/phpunit": "^13.3.4",
|
||||||
"symfony/process": "^8.1.6"
|
"symfony/process": "^8.1.7"
|
||||||
},
|
},
|
||||||
"conflict": {
|
"conflict": {
|
||||||
"filp/whoops": "<2.18.3",
|
"filp/whoops": "<2.18.3",
|
||||||
"laravel/boost": "<2.6.0",
|
"laravel/boost": "<2.6.0",
|
||||||
"phpunit/phpunit": ">13.3.3",
|
"phpunit/phpunit": ">13.3.4",
|
||||||
"sebastian/exporter": "<7.0.0",
|
"sebastian/exporter": "<7.0.0",
|
||||||
"webmozart/assert": "<1.11.0"
|
"webmozart/assert": "<1.11.0"
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ namespace Pest;
|
|||||||
|
|
||||||
function version(): string
|
function version(): string
|
||||||
{
|
{
|
||||||
return '5.2.0';
|
return '5.2.1';
|
||||||
}
|
}
|
||||||
|
|
||||||
function testDirectory(string $file = ''): string
|
function testDirectory(string $file = ''): string
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace Pest\Plugins\Tia\Baselines;
|
namespace Pest\Plugins\Tia\Baselines;
|
||||||
|
|
||||||
use Pest\Plugins\Tia\WatchPatterns;
|
use Pest\Plugins\Tia\WatchPatterns;
|
||||||
|
use Symfony\Component\Process\ExecutableFinder;
|
||||||
use Symfony\Component\Process\Process;
|
use Symfony\Component\Process\Process;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,10 +39,7 @@ abstract readonly class BaseRemote // @pest-arch-ignore-line
|
|||||||
|
|
||||||
public function cliExists(): bool
|
public function cliExists(): bool
|
||||||
{
|
{
|
||||||
$process = new Process(['which', $this->cliName()]);
|
return new ExecutableFinder()->find($this->cliName()) !== null;
|
||||||
$process->run();
|
|
||||||
|
|
||||||
return $process->isSuccessful();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function cliAuthenticated(): bool
|
public function cliAuthenticated(): bool
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Pest Testing Framework 5.2.0.
|
Pest Testing Framework 5.2.1.
|
||||||
|
|
||||||
USAGE: pest <file> [options]
|
USAGE: pest <file> [options]
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
|
|
||||||
Pest Testing Framework 5.2.0.
|
Pest Testing Framework 5.2.1.
|
||||||
|
|
||||||
|
|||||||
@@ -519,13 +519,21 @@ final class Project
|
|||||||
throw new RuntimeException(sprintf('Unable to create [%s].', $directory));
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new RuntimeException(sprintf('Unable to mirror [%s] into [%s].', $from, $to));
|
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>
|
* @return iterable<\SplFileInfo>
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user