packages/sql-semantics-mysql/tests/Unit/Rules/Noise/ServerNoiseTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Rules\Noise;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\MySql\Rules\Noise\ServerNoise;
11
12#[CoversClass(ServerNoise::class)]
13#[Small]
14final class ServerNoiseTest extends TestCase
15{
16 public function testPositionsListsTheOptionalWordsAndCommas(): void
17 {
18 self::assertSame([0], ServerNoise::positions()['opt_work: WORK_SYM']);
19 self::assertSame([1], ServerNoise::positions()['drop_ts_options: drop_ts_options_list , drop_ts_option']);
20 }
21
22 public function testSynonymsMapBeginToStart(): void
23 {
24 self::assertSame([0 => 'START_SYM'], ServerNoise::synonyms()['begin_or_start: BEGIN_SYM']);
25 }
26}
27