for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace PhpMyAdmin\SqlParser\Tests\Builder;
use PhpMyAdmin\SqlParser\Parser;
use PhpMyAdmin\SqlParser\Tests\TestCase;
class RenameStatementTest extends TestCase
{
public function testBuilder()
$query = 'RENAME TABLE old_table TO new_table';
$parser = new Parser(
$query
);
$stmt = $parser->statements[0];
$this->assertEquals(
$query,
$stmt->build()
$query = 'RENAME TABLE current_db.tbl_name TO other_db.tbl_name';
$query = 'RENAME TABLE old_table1 TO new_table1, old_table2 TO new_table2, old_table3 TO new_table3';
}