mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
WIP
This commit is contained in:
committed by
Nuno Maduro
parent
f107fdfa08
commit
2ae06a0e2d
@ -13,6 +13,7 @@ use ParaTest\RunnerInterface;
|
||||
use Pest\Contracts\Plugins\HandlesArguments;
|
||||
use Pest\Plugins\Concerns\HandleArguments;
|
||||
use Pest\Plugins\Parallel\Paratest\WrapperRunner;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Process\PhpProcess;
|
||||
@ -47,7 +48,8 @@ final class Laravel implements HandlesArguments
|
||||
private function setLaravelParallelRunner(): void
|
||||
{
|
||||
if (! method_exists(ParallelRunner::class, 'resolveRunnerUsing')) {
|
||||
$this->output->writeln(' <fg:red>Using parallel with Pest requires Laravel v8.55.0 or higher.</>');
|
||||
$this->output->writeln(' <fg=red>Using parallel with Pest requires Laravel v8.55.0 or higher.</>');
|
||||
exit(Command::FAILURE);
|
||||
}
|
||||
|
||||
ParallelRunner::resolveRunnerUsing(fn (Options $options, OutputInterface $output): RunnerInterface => new WrapperRunner($options, $output));
|
||||
|
||||
Reference in New Issue
Block a user