packages/sql-semantics-mysql/tests/Unit/Statement/Replication/Source/ServerIdsTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Replication\Source;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Medium;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\MySql\Semantics;
11use SqlSemantics\Platform\MySql\Statement\Replication\Source\ServerIds;
12
13#[CoversClass(ServerIds::class)]
14#[Medium]
15final class ServerIdsTest extends TestCase
16{
17 public function testRenderWritesTheListAndTheEmptyList(): void
18 {
19 self::assertSame('CHANGE MASTER TO IGNORE_SERVER_IDS = (), IGNORE_SERVER_IDS = (2, 3)', (new Semantics('mysql-5.6.51'))->analyze('change master to ignore_server_ids = (), ignore_server_ids = (2,3)')->toString());
20 }
21}
22