1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-03 10:07:49 +01:00
parallel/test/Worker/Fixtures/NonAutoloadableResultTask.php

16 lines
333 B
PHP

<?php
namespace Amp\Parallel\Test\Worker\Fixtures;
use Amp\Parallel\Worker\Environment;
use Amp\Parallel\Worker\Task;
class NonAutoloadableResultTask implements Task
{
public function run(Environment $environment)
{
require __DIR__ . "/non-autoloadable-class.php";
return new NonAutoloadableClass;
}
}