summaryrefslogtreecommitdiffstats
path: root/tests/Parser/LockStatementTest.php
diff options
context:
space:
mode:
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'),
+ );
+ }
+}