From d4303332457f5822b5f680a60d6fe00dfe25db40 Mon Sep 17 00:00:00 2001 From: yaozm Date: Fri, 10 May 2024 11:40:13 +0800 Subject: [PATCH] refactor(test): Improve env_explode test case - Updated the test case for env_explode function in HeplersTest.php - Changed the expectation for env_explode('ENV_EXPLODE_EMPTY') to an empty array --- phpstan-baseline.neon | 5 +++ phpunit.xml.dist | 6 ++-- rector.php | 11 ++---- src/Support/helpers.php | 2 +- tests/Commands/TestCommandTest.php | 22 +++++++++--- tests/ExceptionNotifyManagerTest.php | 10 +++--- tests/Pest.php | 54 ++++++++++++++++++++++++---- tests/Support/HeplersTest.php | 2 +- tests/TestCase.php | 1 + 9 files changed, 84 insertions(+), 29 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 4025d49..021462b 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5,6 +5,11 @@ parameters: count: 1 path: src/Collectors/ApplicationCollector.php + - + message: "#^Call to an undefined method Illuminate\\\\Contracts\\\\Foundation\\\\Application\\:\\:terminating\\(\\)\\.$#" + count: 1 + path: src/Commands/TestCommand.php + - message: "#^Method Guanguans\\\\LaravelExceptionNotify\\\\DefaultNotifyClientExtender\\:\\:__invoke\\(\\) should return Guanguans\\\\Notify\\\\Foundation\\\\Client but returns Guanguans\\\\Notify\\\\Foundation\\\\Concerns\\\\HasHttpClient\\.$#" count: 1 diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 7c4f77a..de09bd5 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -25,11 +25,11 @@ - - - + + +