From 163de283381055f50fd8c30f1b58a7d74a4609bb Mon Sep 17 00:00:00 2001 From: Alex Rock Ancelet Date: Sat, 30 May 2020 00:10:48 +0200 Subject: [PATCH] Make sure PHP is called before calling pest as sub process --- tests/Visual/SingleTestOrDirectory.php | 2 +- tests/Visual/Success.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Visual/SingleTestOrDirectory.php b/tests/Visual/SingleTestOrDirectory.php index d86fc4c9..b2200ed8 100644 --- a/tests/Visual/SingleTestOrDirectory.php +++ b/tests/Visual/SingleTestOrDirectory.php @@ -3,7 +3,7 @@ use Symfony\Component\Process\Process; $run = function (string $target) { - $process = new Process(['./bin/pest', $target], dirname(__DIR__, 2)); + $process = new Process(['php', 'bin/pest', $target], dirname(__DIR__, 2)); $process->run(); diff --git a/tests/Visual/Success.php b/tests/Visual/Success.php index 70d11a52..d327beb5 100644 --- a/tests/Visual/Success.php +++ b/tests/Visual/Success.php @@ -9,7 +9,7 @@ test('visual snapshot of test suite on success', function () { ]); $output = function () use ($testsPath) { - $process = (new Symfony\Component\Process\Process(['./bin/pest'], dirname($testsPath), ['EXCLUDE' => 'integration', 'REBUILD_SNAPSHOTS' => false])); + $process = (new Symfony\Component\Process\Process(['php', 'bin/pest'], dirname($testsPath), ['EXCLUDE' => 'integration', 'REBUILD_SNAPSHOTS' => false])); $process->run();