From 2cb201bd161358fde38006044bc623009f3a45a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 22 Jul 2022 23:28:56 +0200 Subject: [PATCH] Add pest() helper --- tests/Pest.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/Pest.php b/tests/Pest.php index 9103936..30daff3 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -1,5 +1,7 @@ in('Pest'); +uses(TestCase::class)->in('Pest'); /* |-------------------------------------------------------------------------- @@ -43,3 +45,8 @@ function something() { // .. } + +function pest(): TestCase +{ + return Pest\TestSuite::getInstance()->test; +}