packages/sql-semantics-postgres/tests/Unit/Statement/Invocation/Syntax/KeywordFunctionTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Invocation\Syntax;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\PostgreSql\Statement\Invocation\Syntax\KeywordFunction;
11
12#[CoversClass(KeywordFunction::class)]
13#[Small]
14final class KeywordFunctionTest extends TestCase
15{
16 public function testCatalogOnlyTellsTheLegacyJsonObject(): void
17 {
18 self::assertTrue(KeywordFunction::JsonObject->catalogOnly());
19 self::assertFalse(KeywordFunction::Overlay->catalogOnly());
20 }
21}
22