+ Add vendor of sqlparser.
This commit is contained in:
+24
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user