packages/sql-semantics-sqlite/tests/Unit/Statement/Schema/Problem/UnknownTableOptionTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Schema\Problem;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\Sqlite\Model\Statement\Identifier\Name;
11use SqlSemantics\Platform\Sqlite\Statement\Lexical\Word;
12use SqlSemantics\Platform\Sqlite\Statement\Lexical\WordQuote;
13use SqlSemantics\Platform\Sqlite\Statement\Schema\Problem\UnknownTableOption;
14use SqlSemantics\Platform\Sqlite\Statement\Schema\Table\TableOption;
15
16#[CoversClass(UnknownTableOption::class)]
17#[Small]
18final class UnknownTableOptionTest extends TestCase
19{
20 public function testMessageSpellsTheWordAsWritten(): void
21 {
22 self::assertSame('Table option "rowid" is unknown.', (new UnknownTableOption(new TableOption(new Word(new Name('rowid'), WordQuote::Double), true)))->message());
23 }
24}
25