packages/sql-semantics-sqlite/tests/Unit/Statement/Schema/Problem/ColumnCountMismatchTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Schema\Problem;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\Sqlite\Statement\Schema\Problem\ColumnCountMismatch;
11
12#[CoversClass(ColumnCountMismatch::class)]
13#[Small]
14final class ColumnCountMismatchTest extends TestCase
15{
16 public function testMessageGivesBothCounts(): void
17 {
18 self::assertSame('The column list names 1 columns but the query returns 2.', (new ColumnCountMismatch(1, 2))->message());
19 }
20}
21