diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2017-12-14 22:13:37 -0200 |
---|---|---|
committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2017-12-14 22:13:37 -0200 |
commit | 768a0d74909f11939a9abda851db62bafedafff9 (patch) | |
tree | 8ad8106c41f3a5534c149c2ede12f247e905ecfb /tests/Lexer/IsMethodsTest.php | |
parent | acd10db572bf25c6b939311ea4bd954129b4c9ef (diff) | |
download | sql-parser-768a0d74909f11939a9abda851db62bafedafff9.zip sql-parser-768a0d74909f11939a9abda851db62bafedafff9.tar.gz sql-parser-768a0d74909f11939a9abda851db62bafedafff9.tar.bz2 |
Refactoring tests
Diffstat (limited to 'tests/Lexer/IsMethodsTest.php')
-rw-r--r-- | tests/Lexer/IsMethodsTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Lexer/IsMethodsTest.php b/tests/Lexer/IsMethodsTest.php index 192b194..56552c7 100644 --- a/tests/Lexer/IsMethodsTest.php +++ b/tests/Lexer/IsMethodsTest.php @@ -24,10 +24,10 @@ class IsMethodsTest extends TestCase ); $this->assertEquals(1 | Token::FLAG_KEYWORD_RESERVED, Context::isKeyword('FROM', true)); - $this->assertEquals(null, Context::isKeyword('MODIFY', true)); + $this->assertNull(Context::isKeyword('MODIFY', true)); - $this->assertEquals(null, Context::isKeyword('foo')); - $this->assertEquals(null, Context::isKeyword('bar baz')); + $this->assertNull(Context::isKeyword('foo')); + $this->assertNull(Context::isKeyword('bar baz')); } public function testIsOperator() @@ -40,7 +40,7 @@ class IsMethodsTest extends TestCase $this->assertEquals(Token::FLAG_OPERATOR_ASSIGNMENT, Context::isOperator(':=')); $this->assertEquals(Token::FLAG_OPERATOR_SQL, Context::isOperator(',')); - $this->assertEquals(Context::isOperator('a'), null); + $this->assertNull(Context::isOperator('a')); } public function testIsWhitespace() @@ -68,7 +68,7 @@ class IsMethodsTest extends TestCase $this->assertEquals(Token::FLAG_COMMENT_C, Context::isComment('/*comment */')); $this->assertEquals(Token::FLAG_COMMENT_SQL, Context::isComment('-- my comment')); - $this->assertEquals(null, Context::isComment('--not a comment')); + $this->assertNull(Context::isComment('--not a comment')); } public function testIsBool() |