mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
resolved conflicts
This commit is contained in:
+41
@@ -0,0 +1,41 @@
|
||||
<?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(): void
|
||||
{
|
||||
$query = 'TRUNCATE TABLE mytable;';
|
||||
|
||||
$parser = new Parser($query);
|
||||
$stmt = $parser->statements[0];
|
||||
|
||||
$this->assertEquals($query, $stmt->build());
|
||||
}
|
||||
|
||||
public function testBuilderDbtable(): void
|
||||
{
|
||||
$query = 'TRUNCATE TABLE mydb.mytable;';
|
||||
|
||||
$parser = new Parser($query);
|
||||
$stmt = $parser->statements[0];
|
||||
|
||||
$this->assertEquals($query, $stmt->build());
|
||||
}
|
||||
|
||||
public function testBuilderDbtableBackQuotes(): void
|
||||
{
|
||||
$query = 'TRUNCATE TABLE `mydb`.`mytable`;';
|
||||
|
||||
$parser = new Parser($query);
|
||||
$stmt = $parser->statements[0];
|
||||
|
||||
$this->assertEquals($query, $stmt->build());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user