1
0
mirror of https://github.com/danog/parallel.git synced 2024-11-30 04:39:01 +01:00
parallel/test/Context/ProcessTest.php

18 lines
436 B
PHP
Raw Permalink Normal View History

<?php
namespace Amp\Parallel\Test\Context;
2020-02-11 17:38:30 +01:00
use Amp\Loop;
use Amp\Parallel\Context\Context;
2020-02-11 17:38:30 +01:00
use Amp\Parallel\Context\Internal\ProcessHub;
use Amp\Parallel\Context\Process;
class ProcessTest extends AbstractContextTest
2018-10-07 16:50:45 +02:00
{
public function createContext($script): Context
2018-10-07 16:50:45 +02:00
{
2020-02-11 17:38:30 +01:00
Loop::setState(Process::class, new ProcessHub(false)); // Manually set ProcessHub using socket server.
return new Process($script);
}
}