packages/sql-semantics-mysql/tests/Unit/Statement/Alter/Command/ElementKindTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Alter\Command;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\MySql\Statement\Alter\Command\ElementKind;
11
12#[CoversClass(ElementKind::class)]
13#[Small]
14final class ElementKindTest extends TestCase
15{
16 public function testCasesSpellTheElementKeywords(): void
17 {
18 self::assertSame(['COLUMN', 'PRIMARY KEY', 'FOREIGN KEY', 'INDEX', 'CHECK', 'CONSTRAINT'], array_column(ElementKind::cases(), 'value'));
19 }
20}
21