diff options
Diffstat (limited to 'tests/parser')
-rw-r--r-- | tests/parser/CallStatementTest.php | 1 | ||||
-rw-r--r-- | tests/parser/CreateStatementTest.php | 4 | ||||
-rw-r--r-- | tests/parser/LimitKeywordTest.php | 25 |
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/parser/CallStatementTest.php b/tests/parser/CallStatementTest.php index f017b14..3eec381 100644 --- a/tests/parser/CallStatementTest.php +++ b/tests/parser/CallStatementTest.php @@ -20,6 +20,7 @@ class CallStatementTest extends TestCase return array( array('parseCall'), array('parseCall2'), + array('parseCall3'), ); } } diff --git a/tests/parser/CreateStatementTest.php b/tests/parser/CreateStatementTest.php index edd71fe..8f8c43a 100644 --- a/tests/parser/CreateStatementTest.php +++ b/tests/parser/CreateStatementTest.php @@ -19,10 +19,14 @@ class CreateStatementTest extends TestCase { return array( array('parseCreateTable'), + array('parseCreateTable2'), + array('parseCreateTableErr1'), array('parseCreateProcedure'), array('parseCreateProcedure2'), array('parseCreateFunction'), array('parseCreateFunctionErr1'), + array('parseCreateFunctionErr2'), + array('parseCreateUser'), ); } } diff --git a/tests/parser/LimitKeywordTest.php b/tests/parser/LimitKeywordTest.php new file mode 100644 index 0000000..2e7831d --- /dev/null +++ b/tests/parser/LimitKeywordTest.php @@ -0,0 +1,25 @@ +<?php + +namespace SqlParser\Tests\Parser; + +use SqlParser\Tests\TestCase; + +class LimitKeywordTest extends TestCase +{ + + /** + * @dataProvider testCallProvider + */ + public function testCall($test) + { + $this->runParserTest($test); + } + + public function testCallProvider() + { + return array( + array('parseLimitErr1'), + array('parseLimitErr2'), + ); + } +} |