static-php-cli/tests/SPC/doctor/CheckListHandlerTest.php

25 lines
465 B
PHP
Raw Normal View History

2023-09-09 10:04:20 +02:00
<?php
declare(strict_types=1);
namespace SPC\Tests\doctor;
use PHPUnit\Framework\TestCase;
use SPC\doctor\DoctorHandler;
2023-09-09 10:04:20 +02:00
/**
* @internal
*/
final class CheckListHandlerTest extends TestCase
{
public function testRunChecksReturnsListOfCheck(): void
{
$list = new DoctorHandler();
2023-09-09 10:04:20 +02: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
}
}