packages/sql-semantics-mysql/tests/Unit/Statement/Table/Problem/ViewColumnCountTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Table\Problem;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\MySql\Statement\Table\Problem\ViewColumnCount;
11
12#[CoversClass(ViewColumnCount::class)]
13#[Small]
14final class ViewColumnCountTest extends TestCase
15{
16 public function testMessageNamesBothCounts(): void
17 {
18 self::assertSame("View's SELECT and view's field list have different column counts (2 and 1).", (new ViewColumnCount(2, 1))->message());
19 }
20}
21