diff options
author | William Desportes <williamdes@wdes.fr> | 2019-05-28 13:00:00 +0200 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2019-05-28 15:08:34 +0200 |
commit | 930a860bc7f0684c45babd012070f88a9505d427 (patch) | |
tree | 40269b2466aa6585c8c65f42d02a00a496c2fa46 /tests/Utils/ErrorTest.php | |
parent | 5d5089a259d0195c4a1e4aa3588c31c839954067 (diff) | |
download | sql-parser-930a860bc7f0684c45babd012070f88a9505d427.zip sql-parser-930a860bc7f0684c45babd012070f88a9505d427.tar.gz sql-parser-930a860bc7f0684c45babd012070f88a9505d427.tar.bz2 |
revert of new array syntax
See: 86c5baebda24c1721fb6881df8671a3c7df60e8b
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'tests/Utils/ErrorTest.php')
-rw-r--r-- | tests/Utils/ErrorTest.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/Utils/ErrorTest.php b/tests/Utils/ErrorTest.php index 7e1326f..36dc198 100644 --- a/tests/Utils/ErrorTest.php +++ b/tests/Utils/ErrorTest.php @@ -15,20 +15,20 @@ class ErrorTest extends TestCase $lexer = new Lexer('SELECT * FROM db..tbl $'); $parser = new Parser($lexer->list); $this->assertEquals( - [ - [ + array( + array( 'Unexpected character.', 0, '$', 22, - ], - [ + ), + array( 'Unexpected dot.', 0, '.', 17, - ], - ], + ), + ), Error::get([$lexer, $parser]) ); } @@ -36,7 +36,7 @@ class ErrorTest extends TestCase public function testFormat() { $this->assertEquals( - ['#1: error msg (near "token" at position 100)'], + array('#1: error msg (near "token" at position 100)'), Error::format([['error msg', 42, 'token', 100]]) ); } |