chore: refacto

This commit is contained in:
Nuno Maduro
2023-04-08 12:23:10 +01:00
parent f73e6aebcb
commit 81cdb7a300
6 changed files with 10 additions and 10 deletions

View File

@ -92,7 +92,7 @@ if (! function_exists('test')) {
*/
function test(string $description = null, Closure $closure = null): HigherOrderTapProxy|TestCall
{
if ($description === null && TestSuite::getInstance()->test !== null) {
if ($description === null && TestSuite::getInstance()->test instanceof \PHPUnit\Framework\TestCase) {
return new HigherOrderTapProxy(TestSuite::getInstance()->test);
}