packages/sql-semantics-sqlite/tests/Unit/Statement/Inspection/ExplainModeTest.php

1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Inspection;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\Sqlite\Statement\Inspection\ExplainMode;
11
12#[CoversClass(ExplainMode::class)]
13#[Small]
14final class ExplainModeTest extends TestCase
15{
16    public function testCasesNameTheTwoReports(): void
17    {
18        self::assertSame(['Program', 'QueryPlan'], array_column(ExplainMode::cases(), 'name'));
19    }
20}
21