Update namespaces

This commit is contained in:
2025-09-29 16:40:43 -03:00
parent bc3421942f
commit f07ad79e75
66 changed files with 509 additions and 274 deletions

24
tests/MySQLCreateTest.php Normal file
View File

@ -0,0 +1,24 @@
<?php
use PHPUnit\Framework\TestCase;
class MySQLCreateTest extends TestCase
{
public function testBaseQuery(): void
{
$query = new Database\Implement\Query\MySQL\Create();
$query->table('test_table');
$query->columns('`column1` int');
$expected = "CREATE TABLE `test_table` (`column1` int)";
$this->assertEquals($expected, "{$query}");
}
public function testMissingColumns(): void
{
$query = new Database\Implement\Query\MySQL\Create();
$query->table('test_table');
$this->expectException(Database\Except\Missing\Columns::class);
echo "{$query}";
}
}