mirror of
https://github.com/danog/parallel.git
synced 2024-12-12 09:09:35 +01:00
7c8756c3a5
Fixes #55 and #71.
17 lines
342 B
PHP
17 lines
342 B
PHP
<?php
|
|
|
|
namespace Amp\Parallel\Test\Worker\Fixtures;
|
|
|
|
use Amp\Parallel\Worker\Environment;
|
|
use Amp\Parallel\Worker\Task;
|
|
|
|
class AutoloadTestTask implements Task
|
|
{
|
|
public function run(Environment $environment): bool
|
|
{
|
|
\class_exists('Amp\\NonExistentClass', true);
|
|
|
|
return \defined("AMP_TEST_CUSTOM_AUTOLOADER");
|
|
}
|
|
}
|