feat: adds shell

This commit is contained in:
Nuno Maduro
2025-07-21 13:25:50 +01:00
parent 8f810bf2a2
commit e0695a13cb
3 changed files with 110 additions and 1 deletions

View File

@ -10,6 +10,7 @@ use Pest\Preset;
use Pest\Support\ChainableClosure;
use Pest\Support\ExceptionTrace;
use Pest\Support\Reflection;
use Pest\Support\Shell;
use Pest\TestSuite;
use PHPUnit\Framework\Attributes\PostCondition;
use PHPUnit\Framework\TestCase;
@ -477,4 +478,12 @@ trait Testable
'notes' => self::$__latestNotes,
];
}
/**
* Opens a shell for the test case.
*/
public function shell(): void
{
Shell::open();
}
}