mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
24 lines
529 B
PHP
24 lines
529 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Plugins\Parallel\Handlers;
|
|
|
|
use Pest\Plugins\Concerns\HandleArguments;
|
|
use Pest\Plugins\Parallel\Contracts\HandlersWorkerArguments;
|
|
|
|
final class Pest implements HandlersWorkerArguments
|
|
{
|
|
use HandleArguments;
|
|
|
|
/**
|
|
* Handles the arguments, adding the "PEST_PARALLEL" environment variable to the global $_SERVER.
|
|
*/
|
|
public function handleWorkerArguments(array $arguments): array
|
|
{
|
|
$_SERVER['PEST_PARALLEL'] = '1';
|
|
|
|
return $arguments;
|
|
}
|
|
}
|