packages/sql-catalog/tests/Unit/Platform/MySql/SqlFormatterTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Platform\MySql;
6
7use PHPUnit\Framework\TestCase;
8
9#[\PHPUnit\Framework\Attributes\CoversClass(\SqlCatalog\Platform\MySql\SqlFormatter::class)]
10final class SqlFormatterTest extends TestCase
11{
12 public function testFormatExpandsAcceptedSyntaxAndDeclinesUnsupportedInput(): void
13 {
14 $formatter = new \SqlCatalog\Platform\MySql\SqlFormatter();
15 self::assertSame("SELECT\n 1", $formatter->format('SELECT 1'));
16 self::assertNull($formatter->format('this is not a statement'));
17 }
18}
19