summaryrefslogtreecommitdiffstats
path: root/tests/Fragments/LimitKeywordTest.php
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-07-03 21:18:10 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-07-04 23:41:52 +0300
commitb3eff80030f9bd6d90e65360eb89e18a1be298b2 (patch)
treedb420fef27f24856f4cfaeee008104fdfcb77942 /tests/Fragments/LimitKeywordTest.php
parent4dabcc2ae266c022e44294bfbe3344b05e66e266 (diff)
downloadsql-parser-b3eff80030f9bd6d90e65360eb89e18a1be298b2.zip
sql-parser-b3eff80030f9bd6d90e65360eb89e18a1be298b2.tar.gz
sql-parser-b3eff80030f9bd6d90e65360eb89e18a1be298b2.tar.bz2
The context depends on the SQL mode.
Implemented a few more builders. Improved some fragments and statement types. Fixed the noAlias option in FieldFragment. Reordered CREATE statements's options. Updated contexts definitions. Fixed typos. Improved tests.
Diffstat (limited to 'tests/Fragments/LimitKeywordTest.php')
-rw-r--r--tests/Fragments/LimitKeywordTest.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/Fragments/LimitKeywordTest.php b/tests/Fragments/LimitKeywordTest.php
index f26d871..ff97cf0 100644
--- a/tests/Fragments/LimitKeywordTest.php
+++ b/tests/Fragments/LimitKeywordTest.php
@@ -21,4 +21,20 @@ class LimitKeywordTest extends TestCase
$fragment = new LimitKeyword(1, 2);
$this->assertEquals(LimitKeyword::build($fragment), '2, 1');
}
+
+ /**
+ * @dataProvider testParseProvider
+ */
+ public function testParse($test)
+ {
+ $this->runParserTest($test);
+ }
+
+ public function testParseProvider()
+ {
+ return array(
+ array('parseLimitErr1'),
+ array('parseLimitErr2'),
+ );
+ }
}