mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 19:36:02 -05:00
18 lines
330 B
PHP
18 lines
330 B
PHP
<?php
|
|||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
use Pest\Support\HigherOrderTapProxy;
|
||
|
|
use PHPUnit\Framework\TestCase;
|
||
|
|
|
||
|
|
function pterodactylTestCase(): TestCase
|
||
|
|
{
|
||
|
|
$test = test();
|
||
|
|
|
||
|
|
if (! $test instanceof HigherOrderTapProxy) {
|
||
|
|
throw new LogicException('No Pest test case is currently running.');
|
||
|
|
}
|
||
|
|
|
||
|
|
return $test->target;
|
||
|
|
}
|