packages/sql-semantics-postgres/tests/Unit/Statement/Utility/Session/SpecialParameterTest.php

1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Utility\Session;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10
11#[CoversClass(\SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SpecialParameter::class)]
12#[Small]
13final class SpecialParameterTest extends TestCase
14{
15    public function testParameterOfEachKeywordForm(): void
16    {
17        self::assertSame(['timezone', 'transaction_isolation', 'session_authorization', null], [\SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SpecialParameter::TimeZone->parameter(), \SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SpecialParameter::TransactionIsolationLevel->parameter(), \SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SpecialParameter::SessionAuthorization->parameter(), \SqlSemantics\Platform\PostgreSql\Statement\Utility\Session\SpecialParameter::All->parameter()]);
18    }
19}
20