packages/sql-semantics-postgres/tests/Unit/Statement/Relation/Xml/XmlColumnOptionKindTest.php

1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Relation\Xml;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10
11#[CoversClass(\SqlSemantics\Platform\PostgreSql\Statement\Relation\Xml\XmlColumnOptionKind::class)]
12#[Small]
13final class XmlColumnOptionKindTest extends TestCase
14{
15    public function testValuedTellsWhichOptionsHaveAValue(): void
16    {
17        self::assertSame([true, true, false, false, true], array_map(static fn (\SqlSemantics\Platform\PostgreSql\Statement\Relation\Xml\XmlColumnOptionKind $kind): bool => $kind->valued(), \SqlSemantics\Platform\PostgreSql\Statement\Relation\Xml\XmlColumnOptionKind::cases()));
18    }
19}
20