summaryrefslogtreecommitdiffstats
path: root/tests/Parser/SelectStatementTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Parser/SelectStatementTest.php')
-rw-r--r--tests/Parser/SelectStatementTest.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/Parser/SelectStatementTest.php b/tests/Parser/SelectStatementTest.php
new file mode 100644
index 0000000..943ceb7
--- /dev/null
+++ b/tests/Parser/SelectStatementTest.php
@@ -0,0 +1,33 @@
+<?php
+
+namespace SqlParser\Tests\Parser;
+
+use SqlParser\Tests\TestCase;
+
+class SelectStatementTest extends TestCase
+{
+
+ public function testSelectOptions()
+ {
+ $parser = $this->runParserTest('parseSelect');
+ $stmt = $parser->statements[0];
+ $this->assertEquals(10, $stmt->options->has('MAX_STATEMENT_TIME'));
+ }
+
+ /**
+ * @dataProvider testSelectProvider
+ */
+ public function testSelect($test)
+ {
+ $this->runParserTest($test);
+ }
+
+ public function testSelectProvider()
+ {
+ return array(
+ array('parseSelect2'),
+ array('parseSelectErr1'),
+ array('parseSelectNested'),
+ );
+ }
+}