mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 18:57:22 +01:00
fix: reverts autoloading functions
This commit is contained in:
2
bin/pest
2
bin/pest
@ -11,8 +11,6 @@ use Symfony\Component\Console\Output\ConsoleOutput;
|
|||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
|
|
||||||
(static function () {
|
(static function () {
|
||||||
$_SERVER['__PEST__'] = true;
|
|
||||||
|
|
||||||
// Ensures Collision's Printer is registered.
|
// Ensures Collision's Printer is registered.
|
||||||
$_SERVER['COLLISION_PRINTER'] = 'DefaultPrinter';
|
$_SERVER['COLLISION_PRINTER'] = 'DefaultPrinter';
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,6 @@ use Pest\Support\HigherOrderTapProxy;
|
|||||||
use Pest\TestSuite;
|
use Pest\TestSuite;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
if (array_key_exists('__PEST__', $_SERVER)) {
|
|
||||||
if (! function_exists('expect')) {
|
if (! function_exists('expect')) {
|
||||||
/**
|
/**
|
||||||
* Creates a new expectation.
|
* Creates a new expectation.
|
||||||
@ -161,4 +160,3 @@ if (array_key_exists('__PEST__', $_SERVER)) {
|
|||||||
TestSuite::getInstance()->afterAll->set($closure);
|
TestSuite::getInstance()->afterAll->set($closure);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user