feat(mock-plugin): moves mock stuff to their own plugin

This commit is contained in:
Nuno Maduro
2021-05-15 23:43:37 +01:00
parent 9394aa4649
commit 9027411004
6 changed files with 1 additions and 128 deletions

View File

@ -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);
}
}