diff --git a/tests/FunctionTest.php b/tests/FunctionTest.php index aa437f4..dc36f90 100644 --- a/tests/FunctionTest.php +++ b/tests/FunctionTest.php @@ -13,7 +13,12 @@ use Yansongda\Supports\Str; class FunctionTest extends TestCase { - protected function tearDown (): void + protected function setUp(): void + { + Pay::clear(); + } + + protected function tearDown(): void { Pay::clear(); } diff --git a/tests/PayTest.php b/tests/PayTest.php index c1d2bc3..a1e90fc 100644 --- a/tests/PayTest.php +++ b/tests/PayTest.php @@ -21,6 +21,11 @@ use Yansongda\Supports\Pipeline; class PayTest extends TestCase { + protected function setUp(): void + { + Pay::clear(); + } + protected function tearDown(): void { Pay::clear();