mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
feat(mock-plugin): moves mock stuff to their own plugin
This commit is contained in:
@ -3,7 +3,6 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
use Pest\Datasets;
|
||||
use Pest\Mock;
|
||||
use Pest\PendingObjects\AfterEachCall;
|
||||
use Pest\PendingObjects\BeforeEachCall;
|
||||
use Pest\PendingObjects\TestCall;
|
||||
@ -105,15 +104,3 @@ function afterAll(Closure $closure): void
|
||||
{
|
||||
TestSuite::getInstance()->afterAll->set($closure);
|
||||
}
|
||||
|
||||
if (!function_exists('mock')) {
|
||||
/**
|
||||
* Creates a new mock with the given class or object.
|
||||
*
|
||||
* @param string|object $object
|
||||
*/
|
||||
function mock($object): Mock
|
||||
{
|
||||
return new Mock($object);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user