Skip to content

Commit

Permalink
Add pest() helper
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl authored Jul 22, 2022
1 parent d9893f6 commit 2cb201b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use ArchTech\REPLACE\Tests\TestCase;

/*
|--------------------------------------------------------------------------
| Test Case
Expand All @@ -11,7 +13,7 @@
|
*/

uses(ArchTech\REPLACE\Tests\TestCase::class)->in('Pest');
uses(TestCase::class)->in('Pest');

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -43,3 +45,8 @@ function something()
{
// ..
}

function pest(): TestCase
{
return Pest\TestSuite::getInstance()->test;
}

0 comments on commit 2cb201b

Please sign in to comment.