summaryrefslogtreecommitdiffstats
path: root/tests/Components/ExpressionTest.php
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-07-15 00:19:14 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-07-15 00:19:14 +0300
commitd8c6b9cc361a610ef04df9d86b61aabbb68eacb3 (patch)
treed9e6ab71497b777fc58fc1715315e56ccd934684 /tests/Components/ExpressionTest.php
parent380603a8bfebd612bbc70801d99eb727be3e36ce (diff)
downloadsql-parser-d8c6b9cc361a610ef04df9d86b61aabbb68eacb3.zip
sql-parser-d8c6b9cc361a610ef04df9d86b61aabbb68eacb3.tar.gz
sql-parser-d8c6b9cc361a610ef04df9d86b61aabbb68eacb3.tar.bz2
Improved error messages.
Achieved 100% code coverage. Some refactoring.
Diffstat (limited to 'tests/Components/ExpressionTest.php')
-rw-r--r--tests/Components/ExpressionTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Components/ExpressionTest.php b/tests/Components/ExpressionTest.php
index ecf5149..c5e10a4 100644
--- a/tests/Components/ExpressionTest.php
+++ b/tests/Components/ExpressionTest.php
@@ -16,6 +16,11 @@ class ExpressionTest extends TestCase
$this->assertEquals($component->expr, 'IF(film_id > 0, film_id, film_id)');
}
+ public function testParse2()
+ {
+ $component = Expression::parse(new Parser(), $this->getTokensList('col`test`'));
+ }
+
public function testParseErr1()
{
$parser = new Parser();