packages/sql-semantics-mysql/tests/Unit/Statement/Server/Problem/StorageRuleTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Server\Problem;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\MySql\Statement\Server\Problem\StorageRule;
11
12#[CoversClass(StorageRule::class)]
13#[Small]
14final class StorageRuleTest extends TestCase
15{
16 public function testCasesHoldTheServerErrors(): void
17 {
18 self::assertSame(['ER_FILEGROUP_OPTION_ONLY_ONCE', 'ER_WRONG_SIZE_NUMBER', 'ER_SIZE_OVERFLOW_ERROR'], array_column(StorageRule::cases(), 'value'));
19 }
20}
21