packages/sql-semantics-mysql/tests/Unit/Statement/Server/Spatial/SpatialAttributeTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Server\Spatial;
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\Server\Spatial\SpatialAttribute;
12
13#[CoversClass(SpatialAttribute::class)]
14#[Medium]
15final class SpatialAttributeTest extends TestCase
16{
17 public function testRenderWritesTheOrganizationIdentifier(): void
18 {
19 self::assertSame("CREATE SPATIAL REFERENCE SYSTEM 9 NAME 'n' DEFINITION 'd' ORGANIZATION 'o' IDENTIFIED BY 9 DESCRIPTION 'x'", (new Semantics())->analyze("create spatial reference system 9 name 'n' definition 'd' organization 'o' identified by 9 description 'x'")->toString());
20 }
21}
22