* Support php 5.3 for sql parser lib.
This commit is contained in:
+4
-6
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\SqlParser\Tests\Components;
|
||||
|
||||
use PhpMyAdmin\SqlParser\Components\ArrayObj;
|
||||
@@ -10,15 +8,15 @@ use PhpMyAdmin\SqlParser\Tests\TestCase;
|
||||
|
||||
class FunctionCallTest extends TestCase
|
||||
{
|
||||
public function testBuildArray(): void
|
||||
public function testBuildArray()
|
||||
{
|
||||
$component = new FunctionCall('func', ['a', 'b']);
|
||||
$component = new FunctionCall('func', array('a', 'b'));
|
||||
$this->assertEquals('func(a, b)', FunctionCall::build($component));
|
||||
}
|
||||
|
||||
public function testBuildArrayObj(): void
|
||||
public function testBuildArrayObj()
|
||||
{
|
||||
$component = new FunctionCall('func', new ArrayObj(['a', 'b']));
|
||||
$component = new FunctionCall('func', new ArrayObj(array('a', 'b')));
|
||||
$this->assertEquals('func(a, b)', FunctionCall::build($component));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user