1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-02 17:52:14 +01:00
parallel/test/Worker/WorkerThreadTest.php

19 lines
427 B
PHP
Raw Normal View History

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
use Amp\Parallel\Worker\BasicEnvironment;
2016-08-23 23:47:40 +02:00
use Amp\Parallel\Worker\WorkerThread;
2015-08-29 03:55:30 +02:00
/**
* @group threading
2015-08-29 03:55:30 +02:00
* @requires extension pthreads
*/
2018-10-07 16:50:45 +02:00
class WorkerThreadTest extends AbstractWorkerTest
{
protected function createWorker(string $envClassName = BasicEnvironment::class, string $autoloadPath = null)
2018-10-07 16:50:45 +02:00
{
return new WorkerThread($envClassName, $autoloadPath);
2015-08-29 03:55:30 +02:00
}
}