summaryrefslogtreecommitdiffstats
path: root/tests/Lexer/IsMethodsTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Lexer/IsMethodsTest.php')
-rw-r--r--tests/Lexer/IsMethodsTest.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/Lexer/IsMethodsTest.php b/tests/Lexer/IsMethodsTest.php
index dfd065d..a817e65 100644
--- a/tests/Lexer/IsMethodsTest.php
+++ b/tests/Lexer/IsMethodsTest.php
@@ -17,13 +17,16 @@ class IsMethodsTest extends TestCase
$this->assertEquals(1 | Token::FLAG_KEYWORD_RESERVED, Context::isKeyword('DISTINCT'));
$this->assertEquals(
- 1 | Token::FLAG_KEYWORD_COMPOSED | Token::FLAG_KEYWORD_KEY,
+ 1 | Token::FLAG_KEYWORD_RESERVED | Token::FLAG_KEYWORD_COMPOSED | Token::FLAG_KEYWORD_KEY,
Context::isKeyword('PRIMARY KEY')
);
- $this->assertEquals(1 | Token::FLAG_KEYWORD_COMPOSED, Context::isKeyword('CHARACTER SET'));
+ $this->assertEquals(
+ 1 | Token::FLAG_KEYWORD_RESERVED | Token::FLAG_KEYWORD_COMPOSED,
+ Context::isKeyword('CHARACTER SET')
+ );
$this->assertEquals(1 | Token::FLAG_KEYWORD_RESERVED, Context::isKeyword('FROM', true));
- $this->assertEquals(null, Context::isKeyword('PRIMARY KEY', true));
+ $this->assertEquals(null, Context::isKeyword('MODIFY', true));
$this->assertEquals(null, Context::isKeyword('foo'));
$this->assertEquals(null, Context::isKeyword('bar baz'));