summaryrefslogtreecommitdiffstats
path: root/tests/Parser
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-09-13 10:32:25 +0200
committerGitHub <noreply@github.com>2016-09-13 10:32:25 +0200
commit30606001ca8a017be9c0837334a8c9ef52af340e (patch)
tree426acab29d4747cecac5bcea57723de510a2fba8 /tests/Parser
parent496d47d54d26c12ef2832448ed7bf039f561ee3c (diff)
parente42ef817340ba146d5dd4e07f712aeb54f3c0ef6 (diff)
downloadsql-parser-30606001ca8a017be9c0837334a8c9ef52af340e.zip
sql-parser-30606001ca8a017be9c0837334a8c9ef52af340e.tar.gz
sql-parser-30606001ca8a017be9c0837334a8c9ef52af340e.tar.bz2
Merge pull request #75 from devenbansod/fix_51_74
Add correct parsing of SET CHARACTER SET, CHARSET , NAMES statements
Diffstat (limited to 'tests/Parser')
-rw-r--r--tests/Parser/SetStatementTest.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/Parser/SetStatementTest.php b/tests/Parser/SetStatementTest.php
new file mode 100644
index 0000000..d9df799
--- /dev/null
+++ b/tests/Parser/SetStatementTest.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace SqlParser\Tests\Parser;
+
+use SqlParser\Tests\TestCase;
+
+class SetStatementTest extends TestCase
+{
+
+ /**
+ * @dataProvider testSetProvider
+ */
+ public function testSet($test)
+ {
+ $this->runParserTest($test);
+ }
+
+ public function testSetProvider()
+ {
+ return array(
+ array('parser/parseSetCharset'),
+ array('parser/parseSetCharsetError'),
+ array('parser/parseSetCharacterSet'),
+ array('parser/parseSetCharacterSetError'),
+ array('parser/parseSetNames'),
+ array('parser/parseSetNamesError'),
+ array('parser/parseSetError1'),
+ );
+ }
+}