packages/sql-semantics-mysql/tests/Unit/Statement/Server/Problem/StorageProblemTest.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\StorageProblem;
11use SqlSemantics\Platform\MySql\Statement\Server\Problem\StorageRule;
12
13#[CoversClass(StorageProblem::class)]
14#[Small]
15final class StorageProblemTest extends TestCase
16{
17    public function testMessageDescribesEachRule(): void
18    {
19        self::assertSame('The size of MAX_SIZE is a number with an optional K, M or G multiplier (ER_WRONG_SIZE_NUMBER).', (new StorageProblem(StorageRule::WrongSize, 'MAX_SIZE'))->message());
20    }
21}
22