+ Add vendor of sqlparser.

This commit is contained in:
zhujinyong
2022-08-16 15:02:27 +08:00
parent b6dcbaa519
commit c8f3aec35b
979 changed files with 321906 additions and 0 deletions
@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\SqlParser\Tests\Components;
use PhpMyAdmin\SqlParser\Components\ArrayObj;
use PhpMyAdmin\SqlParser\Components\FunctionCall;
use PhpMyAdmin\SqlParser\Tests\TestCase;
class FunctionCallTest extends TestCase
{
public function testBuildArray(): void
{
$component = new FunctionCall('func', ['a', 'b']);
$this->assertEquals('func(a, b)', FunctionCall::build($component));
}
public function testBuildArrayObj(): void
{
$component = new FunctionCall('func', new ArrayObj(['a', 'b']));
$this->assertEquals('func(a, b)', FunctionCall::build($component));
}
}