packages/sql-faker/tests/Unit/Compiler/Bison/Ast/BisonUnknownDeclarationTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\SqlFaker\Compiler\Bison\Ast;
6
7use PHPUnit\Framework\Attributes\CoversNothing;
8use PHPUnit\Framework\TestCase;
9use SqlFaker\Compiler\Bison\Ast\BisonUnknownDeclaration;
10
11#[CoversNothing]
12final class BisonUnknownDeclarationTest extends TestCase
13{
14 public function testDirective(): void
15 {
16 $decl = new BisonUnknownDeclaration('%custom', 'some content');
17
18 self::assertSame('%custom', $decl->directive);
19 }
20
21 public function testContent(): void
22 {
23 $decl = new BisonUnknownDeclaration('%custom', 'some content');
24
25 self::assertSame('some content', $decl->content);
26 }
27}
28