diff options
Diffstat (limited to 'tests/Components/ExpressionTest.php')
-rw-r--r-- | tests/Components/ExpressionTest.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/Components/ExpressionTest.php b/tests/Components/ExpressionTest.php index 01492fd..863d914 100644 --- a/tests/Components/ExpressionTest.php +++ b/tests/Components/ExpressionTest.php @@ -60,7 +60,13 @@ class ExpressionTest extends TestCase public function testBuild() { - $component = new Expression('1 + 2', 'three'); - $this->assertEquals(Expression::build($component), '1 + 2 AS `three`'); + $component = array( + new Expression('1 + 2', 'three'), + new Expression('1 + 3', 'four') + ); + $this->assertEquals( + Expression::build($component), + '1 + 2 AS `three`, 1 + 3 AS `four`' + ); } } |