packages/sql-semantics-postgres/tests/Unit/Rules/Catalog/ClauseFactsTest.php

1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Rules\Catalog;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Medium;
9use PHPUnit\Framework\TestCase;
10
11#[CoversClass(\SqlSemantics\Platform\PostgreSql\Rules\Catalog\ClauseFacts::class)]
12#[Medium]
13final class ClauseFactsTest extends TestCase
14{
15    public function testDeriveRecordsTheModifiersOfAType(): void
16    {
17        self::assertSame([], (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER EXTENSION e ADD TYPE numeric(4, 2)')->facts->diagnostics);
18    }
19}
20