2016-12-30 02:16:04 +01:00
|
|
|
<?php
|
2015-08-29 03:55:30 +02:00
|
|
|
|
2016-08-23 23:47:40 +02:00
|
|
|
namespace Amp\Parallel\Test\Worker;
|
2016-08-18 18:04:48 +02:00
|
|
|
|
2019-02-21 00:39:39 +01:00
|
|
|
use Amp\Parallel\Worker\BasicEnvironment;
|
2016-08-23 23:47:40 +02:00
|
|
|
use Amp\Parallel\Worker\WorkerProcess;
|
2015-08-29 03:55:30 +02:00
|
|
|
|
2018-10-07 16:50:45 +02:00
|
|
|
class WorkerProcessTest extends AbstractWorkerTest
|
|
|
|
{
|
2019-02-21 00:39:39 +01:00
|
|
|
protected function createWorker(string $envClassName = BasicEnvironment::class, string $autoloadPath = null)
|
2018-10-07 16:50:45 +02:00
|
|
|
{
|
2019-02-21 00:39:39 +01:00
|
|
|
return new WorkerProcess($envClassName, [], null, $autoloadPath);
|
2015-08-29 03:55:30 +02:00
|
|
|
}
|
|
|
|
}
|