summaryrefslogtreecommitdiffstats
path: root/tests/Lexer/ContextTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Lexer/ContextTest.php')
-rw-r--r--tests/Lexer/ContextTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Lexer/ContextTest.php b/tests/Lexer/ContextTest.php
index ac9c073..4866cf4 100644
--- a/tests/Lexer/ContextTest.php
+++ b/tests/Lexer/ContextTest.php
@@ -11,14 +11,14 @@ class ContextTest extends TestCase
{
// Default context is 5.7.0.
$this->assertEquals('\\PhpMyAdmin\\SqlParser\\Contexts\\ContextMySql50700', Context::$loadedContext);
- $this->assertTrue(isset(Context::$KEYWORDS['STORED']));
- $this->assertFalse(isset(Context::$KEYWORDS['AUTHORS']));
+ $this->assertArrayHasKey('STORED', Context::$KEYWORDS);
+ $this->assertArrayNotHasKey('AUTHORS', Context::$KEYWORDS);
// Restoring context.
Context::load('');
$this->assertEquals('\\PhpMyAdmin\\SqlParser\\Contexts\\ContextMySql50700', Context::$defaultContext);
- $this->assertTrue(isset(Context::$KEYWORDS['STORED']));
- $this->assertFalse(isset(Context::$KEYWORDS['AUTHORS']));
+ $this->assertArrayHasKey('STORED', Context::$KEYWORDS);
+ $this->assertArrayNotHasKey('AUTHORS', Context::$KEYWORDS);
}
/**