1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-02 09:37:57 +01:00
parallel/test/Worker/WorkerThreadTest.php
2019-02-20 17:39:39 -06:00

19 lines
427 B
PHP

<?php
namespace Amp\Parallel\Test\Worker;
use Amp\Parallel\Worker\BasicEnvironment;
use Amp\Parallel\Worker\WorkerThread;
/**
* @group threading
* @requires extension pthreads
*/
class WorkerThreadTest extends AbstractWorkerTest
{
protected function createWorker(string $envClassName = BasicEnvironment::class, string $autoloadPath = null)
{
return new WorkerThread($envClassName, $autoloadPath);
}
}