mirror of
https://github.com/pestphp/pest.git
synced 2026-03-08 00:37:22 +01:00
fix: --todos in parallel and feedback on process isolation
This commit is contained in:
28
src/Plugins/ProcessIsolation.php
Normal file
28
src/Plugins/ProcessIsolation.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user