summaryrefslogtreecommitdiffstats
path: root/tests/Components/ExpressionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Components/ExpressionTest.php')
-rw-r--r--tests/Components/ExpressionTest.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/Components/ExpressionTest.php b/tests/Components/ExpressionTest.php
index 914ca31..453755d 100644
--- a/tests/Components/ExpressionTest.php
+++ b/tests/Components/ExpressionTest.php
@@ -37,38 +37,38 @@ class ExpressionTest extends TestCase
public function parseErrProvider()
{
- return [
+ return array(
/*
array(
'(1))',
'Unexpected closing bracket.',
),
*/
- [
+ array(
'tbl..col',
'Unexpected dot.',
- ],
- [
+ ),
+ array(
'id AS AS id2',
'An alias was expected.',
- ],
- [
+ ),
+ array(
'id`id2`\'id3\'',
'An alias was previously found.',
- ],
- [
+ ),
+ array(
'(id) id2 id3',
'An alias was previously found.',
- ],
- ];
+ )
+ );
}
public function testBuild()
{
- $component = [
+ $component = array(
new Expression('1 + 2', 'three'),
- new Expression('1 + 3', 'four'),
- ];
+ new Expression('1 + 3', 'four')
+ );
$this->assertEquals(
Expression::build($component),
'1 + 2 AS `three`, 1 + 3 AS `four`'