Files
EasySoft-ZenTaoPMS/lib/sqlparser/vendor/phpmyadmin/sql-parser/tests/Components/FunctionCallTest.php
T

23 lines
635 B
PHP

<?php
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()
{
$component = new FunctionCall('func', array('a', 'b'));
$this->assertEquals('func(a, b)', FunctionCall::build($component));
}
public function testBuildArrayObj()
{
$component = new FunctionCall('func', new ArrayObj(array('a', 'b')));
$this->assertEquals('func(a, b)', FunctionCall::build($component));
}
}