mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 16:27:23 +01:00
29 lines
564 B
PHP
29 lines
564 B
PHP
<?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;
|
|
}
|
|
}
|