mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 01:07:23 +01:00
WIP
This commit is contained in:
committed by
Nuno Maduro
parent
aff11486b2
commit
2561d47bb5
@ -4,13 +4,14 @@ declare(strict_types=1);
|
||||
|
||||
namespace Pest\Plugins\Parallel\Handlers;
|
||||
|
||||
use Pest\Contracts\Plugins\HandlesArguments;
|
||||
use Pest\Plugins\Concerns\HandleArguments;
|
||||
use Pest\Plugins\Parallel\Paratest\WrapperRunner;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class Parallel
|
||||
final class Parallel implements HandlesArguments
|
||||
{
|
||||
use HandleArguments;
|
||||
|
||||
@ -23,9 +24,9 @@ final class Parallel
|
||||
'--no-output',
|
||||
];
|
||||
|
||||
public function handle(array $args): array
|
||||
public function handleArguments(array $arguments): array
|
||||
{
|
||||
$args = array_reduce(self::ARGS_TO_REMOVE, fn ($args, $arg): array => $this->popArgument($arg, $args), $args);
|
||||
$args = array_reduce(self::ARGS_TO_REMOVE, fn ($args, $arg): array => $this->popArgument($arg, $args), $arguments);
|
||||
|
||||
return $this->pushArgument('--runner='.WrapperRunner::class, $args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user