packages/sql-semantics-mysql/tests/Unit/Statement/Utility/Problem/ProgramVariableTest.php

1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Utility\Problem;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name;
11use SqlSemantics\Platform\MySql\Statement\Utility\Problem\ProgramVariable;
12
13#[CoversClass(ProgramVariable::class)]
14#[Small]
15final class ProgramVariableTest extends TestCase
16{
17    public function testDescribeNamesTheName(): void
18    {
19        self::assertSame('the variable declarations of the enclosing stored program, which decide what y denotes', (new ProgramVariable(new Name('y')))->describe());
20    }
21}
22