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:
parent
d9893f667a
commit
2cb201bd16
1 changed files with 8 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
use ArchTech\REPLACE\Tests\TestCase;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue