path('checkout'); $project->scaffoldCheckout($checkout); $project->write('vendor/autoload.php', <<<'DECOY' write('checkout/phpunit.xml', <<<'CONFIGURATION' CONFIGURATION); $test = 'checkout/tests/WorkerAutoloadTest.php'; $project->write($test, <<<'FIXTURE' toBe('1') ->and(realpath((new ReflectionClass(Pest\TestSuite::class))->getFileName()))->toStartWith(dirname(__DIR__).DIRECTORY_SEPARATOR.'src'); }); FIXTURE); $process = new Process( [PHP_BINARY, $checkout.'/bin/pest', '--configuration='.$project->path('checkout/phpunit.xml'), '--colors=never', $project->path($test), '--parallel', '--processes=2'], $checkout, ['PARATEST' => '0', 'PAO_DISABLE' => '1'], ); expect($process->run())->toBe(0, $process->getOutput().$process->getErrorOutput()) ->and($process->getOutput())->toContain('1 passed (2 assertions)'); } finally { Project::destroyAll(); } });