packages/sql-semantics-mysql/tests/Unit/Statement/Call/Window/FrameBoundKindTest.php

1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Call\Window;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\MySql\Statement\Call\Window\FrameBoundKind;
11
12#[CoversClass(FrameBoundKind::class)]
13#[Small]
14final class FrameBoundKindTest extends TestCase
15{
16    public function testOffsetTellsWhetherTheBoundaryHasAnOffset(): void
17    {
18        self::assertTrue(FrameBoundKind::Following->offset());
19        self::assertFalse(FrameBoundKind::UnboundedFollowing->offset());
20    }
21}
22