summaryrefslogtreecommitdiffstats
path: root/tests/Components
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2019-05-29 12:50:08 +0200
committerWilliam Desportes <williamdes@wdes.fr>2019-05-29 12:51:45 +0200
commit92e97d6234645e65bfafcf4b53d98838e57f2d44 (patch)
tree70474f190be4af52daac8d2ac1b237645242b9f5 /tests/Components
parentbb6a2b0435ad64c02bd26768f0fddddd2fb27ffe (diff)
downloadsql-parser-92e97d6234645e65bfafcf4b53d98838e57f2d44.zip
sql-parser-92e97d6234645e65bfafcf4b53d98838e57f2d44.tar.gz
sql-parser-92e97d6234645e65bfafcf4b53d98838e57f2d44.tar.bz2
revert usage of new array syntax []
See: 86c5baebda24c1721fb6881df8671a3c7df60e8b Related-to: 930a860bc7f0684c45babd012070f88a9505d427, 5d5089a259d0195c4a1e4aa3588c31c839954067 Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'tests/Components')
-rw-r--r--tests/Components/FunctionCallTest.php2
-rw-r--r--tests/Components/OptionsArrayTest.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/Components/FunctionCallTest.php b/tests/Components/FunctionCallTest.php
index c4c0c26..b8b485a 100644
--- a/tests/Components/FunctionCallTest.php
+++ b/tests/Components/FunctionCallTest.php
@@ -16,7 +16,7 @@ class FunctionCallTest extends TestCase
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));
}
}
diff --git a/tests/Components/OptionsArrayTest.php b/tests/Components/OptionsArrayTest.php
index bebf62f..a642f83 100644
--- a/tests/Components/OptionsArrayTest.php
+++ b/tests/Components/OptionsArrayTest.php
@@ -81,7 +81,7 @@ class OptionsArrayTest extends TestCase
public function testRemove()
{
/* Assertion 1 */
- $component = new OptionsArray(['a', 'b', 'c']);
+ $component = new OptionsArray(array('a', 'b', 'c'));
$this->assertTrue($component->remove('b'));
$this->assertFalse($component->remove('d'));
$this->assertEquals($component->options, array(0 => 'a', 2 => 'c'));
@@ -106,8 +106,8 @@ class OptionsArrayTest extends TestCase
public function testMerge()
{
- $component = new OptionsArray(['a']);
- $component->merge(['b', 'c']);
+ $component = new OptionsArray(array('a'));
+ $component->merge(array('b', 'c'));
$this->assertEquals($component->options, array('a', 'b', 'c'));
}