packages/sql-semantics-postgres/tests/Unit/Statement/OutputNamingTest.php

1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\PostgreSql\Statement\Expression\ColumnReference;
11use SqlSemantics\Platform\PostgreSql\Statement\Literal\TypedLiteral;
12use SqlSemantics\Platform\PostgreSql\Statement\OutputNaming;
13
14#[CoversClass(OutputNaming::class)]
15#[Small]
16final class OutputNamingTest extends TestCase
17{
18    public function testOutputNameIsOfferedByTheExpressionsThatNameAColumn(): void
19    {
20        self::assertContains(OutputNaming::class, class_implements(ColumnReference::class));
21        self::assertContains(OutputNaming::class, class_implements(TypedLiteral::class));
22    }
23}
24