packages/sql-semantics-postgres/tests/Unit/Statement/Invocation/Problem/WindowProblemKindTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Invocation\Problem;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\WindowProblemKind;
11
12#[CoversClass(WindowProblemKind::class)]
13#[Small]
14final class WindowProblemKindTest extends TestCase
15{
16 public function testCasesCarryTheServerMessages(): void
17 {
18 self::assertSame('RANGE with offset PRECEDING/FOLLOWING requires exactly one ORDER BY column', WindowProblemKind::RangeOffsetOrder->value);
19 }
20}
21