Make sure PHP is called before calling pest as sub process

This commit is contained in:
Alex Rock Ancelet
2020-05-30 00:10:48 +02:00
committed by Dimitrios Karvounaris
parent 3d2c83a501
commit 163de28338
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
use Symfony\Component\Process\Process; use Symfony\Component\Process\Process;
$run = function (string $target) { $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(); $process->run();

View File

@ -9,7 +9,7 @@ test('visual snapshot of test suite on success', function () {
]); ]);
$output = function () use ($testsPath) { $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(); $process->run();