diff options
author | Dan Ungureanu <udan1107@gmail.com> | 2015-07-15 00:19:14 +0300 |
---|---|---|
committer | Dan Ungureanu <udan1107@gmail.com> | 2015-07-15 00:19:14 +0300 |
commit | d8c6b9cc361a610ef04df9d86b61aabbb68eacb3 (patch) | |
tree | d9e6ab71497b777fc58fc1715315e56ccd934684 /tests/Components/ExpressionTest.php | |
parent | 380603a8bfebd612bbc70801d99eb727be3e36ce (diff) | |
download | sql-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.php | 5 |
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(); |