mirror of
https://github.com/danog/parallel.git
synced 2024-12-03 18:17:52 +01:00
f2e5224856
Allows scripts to be written for either context.
18 lines
308 B
PHP
18 lines
308 B
PHP
<?php
|
|
|
|
namespace Amp\Parallel\Test\Context;
|
|
|
|
use Amp\Parallel\Context\Context;
|
|
use Amp\Parallel\Context\Parallel;
|
|
|
|
/**
|
|
* @requires extension parallel
|
|
*/
|
|
class ParallelTest extends AbstractContextTest
|
|
{
|
|
public function createContext($script): Context
|
|
{
|
|
return new Parallel($script);
|
|
}
|
|
}
|