summaryrefslogtreecommitdiffstats
path: root/tests/Utils/ErrorTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Utils/ErrorTest.php')
-rw-r--r--tests/Utils/ErrorTest.php24
1 files changed, 17 insertions, 7 deletions
diff --git a/tests/Utils/ErrorTest.php b/tests/Utils/ErrorTest.php
index 7a62e46..d7d1393 100644
--- a/tests/Utils/ErrorTest.php
+++ b/tests/Utils/ErrorTest.php
@@ -14,19 +14,29 @@ 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(array($lexer, $parser))
+ [
+ [
+ 'Unexpected character.',
+ 0,
+ '$',
+ 22,
+ ],
+ [
+ 'Unexpected dot.',
+ 0,
+ '.',
+ 17,
+ ],
+ ],
+ Error::get([$lexer, $parser])
);
}
public function testFormat()
{
$this->assertEquals(
- array('#1: error msg (near "token" at position 100)'),
- Error::format(array(array('error msg', 42, 'token', 100)))
+ ['#1: error msg (near "token" at position 100)'],
+ Error::format([['error msg', 42, 'token', 100]])
);
}
}