2019-02-13 21:19:01 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Amp\Parallel\Test\Worker;
|
|
|
|
|
2019-02-21 00:39:39 +01:00
|
|
|
use Amp\Parallel\Worker\BasicEnvironment;
|
2019-02-13 21:19:01 +01:00
|
|
|
use Amp\Parallel\Worker\WorkerParallel;
|
|
|
|
|
2019-02-18 17:27:07 +01:00
|
|
|
/**
|
|
|
|
* @requires extension parallel
|
|
|
|
*/
|
2019-02-13 21:19:01 +01:00
|
|
|
class WorkerParallelTest extends AbstractWorkerTest
|
|
|
|
{
|
2019-02-21 00:39:39 +01:00
|
|
|
protected function createWorker(string $envClassName = BasicEnvironment::class, string $autoloadPath = null)
|
2019-02-13 21:19:01 +01:00
|
|
|
{
|
2019-02-21 00:39:39 +01:00
|
|
|
return new WorkerParallel($envClassName, $autoloadPath);
|
2019-02-13 21:19:01 +01:00
|
|
|
}
|
|
|
|
}
|