summaryrefslogtreecommitdiffstats
path: root/tests/Fragments/WhereKeywordTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Fragments/WhereKeywordTest.php')
-rw-r--r--tests/Fragments/WhereKeywordTest.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/Fragments/WhereKeywordTest.php b/tests/Fragments/WhereKeywordTest.php
new file mode 100644
index 0000000..e125cf0
--- /dev/null
+++ b/tests/Fragments/WhereKeywordTest.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace SqlParser\Tests\Fragments;
+
+use SqlParser\Parser;
+use SqlParser\Fragments\WhereKeyword;
+
+use SqlParser\Tests\TestCase;
+
+class WhereKeywordTest extends TestCase
+{
+
+ public function testParse()
+ {
+ $fragment = WhereKeyword::parse(new Parser(), $this->getTokensList('/* id = */ id = 10'));
+ $this->assertEquals($fragment[0]->expr, 'id = 10');
+ }
+}