You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
627 B
30 lines
627 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Tests\unit;
|
|
|
|
use App\Kernel;
|
|
use App\Tests\UnitTester;
|
|
use Codeception\Test\Unit;
|
|
use PHPUnit\Framework\MockObject\MockObject;
|
|
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
|
|
|
|
class KernelTest extends Unit
|
|
{
|
|
protected UnitTester $tester;
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function isExtends(): void
|
|
{
|
|
/** @var Kernel|MockObject $kernel */
|
|
$kernel = $this->getMockBuilder(Kernel::class)
|
|
->disableOriginalConstructor()
|
|
->getMock()
|
|
;
|
|
|
|
self::assertTrue(is_subclass_of($kernel, BaseKernel::class));
|
|
}
|
|
}
|