mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
feat: adds pest function
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
use Pest\Concerns\Expectable;
|
||||
use Pest\Configuration;
|
||||
use Pest\Exceptions\AfterAllWithinDescribe;
|
||||
use Pest\Exceptions\BeforeAllWithinDescribe;
|
||||
use Pest\Expectation;
|
||||
@ -108,6 +109,16 @@ if (! function_exists('uses')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('pest')) {
|
||||
/**
|
||||
* Creates a new Pest configuration instance.
|
||||
*/
|
||||
function pest(): Configuration
|
||||
{
|
||||
return Configuration::getInstance();
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('test')) {
|
||||
/**
|
||||
* Adds the given closure as a test. The first argument
|
||||
|
||||
Reference in New Issue
Block a user