2023-09-09 10:04:20 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\Tests\doctor;
|
|
|
|
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
2025-08-06 20:35:52 +08:00
|
|
|
use SPC\doctor\DoctorHandler;
|
2023-09-09 10:04:20 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @internal
|
|
|
|
|
*/
|
|
|
|
|
final class CheckListHandlerTest extends TestCase
|
|
|
|
|
{
|
|
|
|
|
public function testRunChecksReturnsListOfCheck(): void
|
|
|
|
|
{
|
2025-08-06 20:35:52 +08:00
|
|
|
$list = new DoctorHandler();
|
2023-09-09 10:04:20 +02:00
|
|
|
|
2025-08-06 20:35:52 +08:00
|
|
|
$id = $list->getValidCheckList();
|
2023-10-22 22:16:20 +08:00
|
|
|
foreach ($id as $item) {
|
|
|
|
|
$this->assertInstanceOf('SPC\doctor\AsCheckItem', $item);
|
|
|
|
|
}
|
2023-09-09 10:04:20 +02:00
|
|
|
}
|
|
|
|
|
}
|