From 5934e5e8814c278230010692a21ea4d0fac91f51 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 22 Oct 2023 22:16:20 +0800 Subject: [PATCH] fix doctor phpunit test --- tests/SPC/doctor/CheckListHandlerTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/SPC/doctor/CheckListHandlerTest.php b/tests/SPC/doctor/CheckListHandlerTest.php index 03e00344..364d78ce 100644 --- a/tests/SPC/doctor/CheckListHandlerTest.php +++ b/tests/SPC/doctor/CheckListHandlerTest.php @@ -17,6 +17,8 @@ final class CheckListHandlerTest extends TestCase $list = new CheckListHandler(); $id = $list->runChecks(); - $this->assertCount(7, $id); + foreach ($id as $item) { + $this->assertInstanceOf('SPC\doctor\AsCheckItem', $item); + } } }