finalclassRunProcessContextextends RunProcessMessage { public readonly ?int $exitCode; public readonly ?string $output; public readonly ?string $errorOutput;
publicfunction__construct(RunProcessMessage $message, Process $process) { parent::__construct($message->command, $message->cwd, $message->env, $message->input, $message->timeout);
publicfunctiontestDisableOutputWhileRunningThrowsException() { $this->expectException(RuntimeException::class); $this->expectExceptionMessage('Disabling output while the process is running is not possible.'); $p = $this->getProcessForCode('sleep(39);');