fix: --todos in parallel and feedback on process isolation

This commit is contained in:
Nuno Maduro
2023-03-19 02:01:08 +00:00
parent 48ea48981b
commit 2da899a2b1
5 changed files with 40 additions and 6 deletions

View File

@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace Pest\Plugins;
use Pest\Contracts\Plugins\HandlesArguments;
use Pest\Exceptions\InvalidOption;
/**
* @internal
*/
final class ProcessIsolation implements HandlesArguments
{
use Concerns\HandleArguments;
/**
* {@inheritDoc}
*/
public function handleArguments(array $arguments): array
{
if ($this->hasArgument('--process-isolation', $arguments)) {
throw new InvalidOption('The [--process-isolation] option is not supported.');
}
return $arguments;
}
}