fix: reverts autoloading functions

This commit is contained in:
Nuno Maduro
2022-12-04 23:07:39 +00:00
parent 606d627f1d
commit 850955d7dd
2 changed files with 144 additions and 148 deletions

View File

@ -11,8 +11,6 @@ use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Console\Output\OutputInterface;
(static function () {
$_SERVER['__PEST__'] = true;
// Ensures Collision's Printer is registered.
$_SERVER['COLLISION_PRINTER'] = 'DefaultPrinter';

View File

@ -14,7 +14,6 @@ use Pest\Support\HigherOrderTapProxy;
use Pest\TestSuite;
use PHPUnit\Framework\TestCase;
if (array_key_exists('__PEST__', $_SERVER)) {
if (! function_exists('expect')) {
/**
* Creates a new expectation.
@ -161,4 +160,3 @@ if (array_key_exists('__PEST__', $_SERVER)) {
TestSuite::getInstance()->afterAll->set($closure);
}
}
}