packages/sql-semantics-mysql/tests/Unit/Statement/Routine/Event/CompletionTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Routine\Event;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\MySql\Statement\Routine\Event\Completion;
11
12#[CoversClass(Completion::class)]
13#[Small]
14final class CompletionTest extends TestCase
15{
16 public function testCasesNamePreserveAndNotPreserve(): void
17 {
18 self::assertSame(['Preserve', 'NotPreserve'], array_map(static fn (Completion $completion): string => $completion->name, Completion::cases()));
19 }
20}
21