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 TruncateStatementTest extends TestCase
{
public function testBuilder()
$query = 'TRUNCATE TABLE mytable;';
$parser = new Parser($query);
$stmt = $parser->statements[0];
$this->assertEquals($query, $stmt->build());
}
public function testBuilderDbtable()
$query = 'TRUNCATE TABLE mydb.mytable;';
public function testBuilderDbtableBackQuotes()
$query = 'TRUNCATE TABLE `mydb`.`mytable`;';