1
0
Fork 0
mirror of https://github.com/archtechx/template.git synced 2025-12-12 05:14:04 +00:00

Add pest() helper

This commit is contained in:
Samuel Štancl 2022-07-22 23:28:56 +02:00 committed by GitHub
parent d9893f667a
commit 2cb201bd16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,7 @@
<?php <?php
use ArchTech\REPLACE\Tests\TestCase;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Test Case | Test Case
@ -11,7 +13,7 @@
| |
*/ */
uses(ArchTech\REPLACE\Tests\TestCase::class)->in('Pest'); uses(TestCase::class)->in('Pest');
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -43,3 +45,8 @@ function something()
{ {
// .. // ..
} }
function pest(): TestCase
{
return Pest\TestSuite::getInstance()->test;
}