summaryrefslogtreecommitdiffstats
path: root/tests/Parser/LockStatementTest.php
diff options
context:
space:
mode:
authorDeven Bansod <devenbansod.bits@gmail.com>2018-12-22 14:11:48 +0530
committerDeven Bansod <devenbansod.bits@gmail.com>2018-12-22 15:34:48 +0530
commit09faf92c59feed5c2db7490372ba3dd3947707e8 (patch)
tree1749682b76337cc607055425e40579b0030be09b /tests/Parser/LockStatementTest.php
parente07403c05da390e5da272f5ee29e0d4414add527 (diff)
downloadsql-parser-09faf92c59feed5c2db7490372ba3dd3947707e8.zip
sql-parser-09faf92c59feed5c2db7490372ba3dd3947707e8.tar.gz
sql-parser-09faf92c59feed5c2db7490372ba3dd3947707e8.tar.bz2
Add support for LOCK and UNLOCK Statements
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Diffstat (limited to 'tests/Parser/LockStatementTest.php')
-rw-r--r--tests/Parser/LockStatementTest.php41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/Parser/LockStatementTest.php b/tests/Parser/LockStatementTest.php
new file mode 100644
index 0000000..3458e0a
--- /dev/null
+++ b/tests/Parser/LockStatementTest.php
@@ -0,0 +1,41 @@
+<?php
+
+namespace PhpMyAdmin\SqlParser\Tests\Parser;
+
+use PhpMyAdmin\SqlParser\Tests\TestCase;
+
+class LockStatementTest extends TestCase
+{
+ /**
+ * @dataProvider testLockProvider
+ *
+ * @param mixed $test
+ */
+ public function testLock($test)
+ {
+ $this->runParserTest($test);
+ }
+
+ public function testLockProvider()
+ {
+ return array(
+ array('parser/parseLock1'),
+ array('parser/parseLock2'),
+ array('parser/parseLock3'),
+ array('parser/parseLock4'),
+ array('parser/parseLock5'),
+ array('parser/parseLockErr1'),
+ array('parser/parseLockErr2'),
+ array('parser/parseLockErr3'),
+ array('parser/parseLockErr4'),
+ array('parser/parseLockErr5'),
+ array('parser/parseLockErr6'),
+ array('parser/parseLockErr7'),
+ array('parser/parseLockErr8'),
+ array('parser/parseLockErr9'),
+ array('parser/parseLockErr10'),
+ array('parser/parseUnlock1'),
+ array('parser/parseUnlockErr1'),
+ );
+ }
+}