diff options
author | Damian Dlugosz <bigfootdd@gmail.com> | 2017-01-03 22:06:01 +0100 |
---|---|---|
committer | Damian Dlugosz <bigfootdd@gmail.com> | 2017-01-06 00:11:32 +0100 |
commit | a6e45c5e2e006bbd90306e1e947e25e601965657 (patch) | |
tree | 07fbbdbe95d08721e97b6683226ad3a26a6e9886 /tests/Lexer | |
parent | 082a1fad6c64f455ac42698cb9c7a08f0347a2c0 (diff) | |
download | sql-parser-a6e45c5e2e006bbd90306e1e947e25e601965657.zip sql-parser-a6e45c5e2e006bbd90306e1e947e25e601965657.tar.gz sql-parser-a6e45c5e2e006bbd90306e1e947e25e601965657.tar.bz2 |
Apply php-cs-fixer
Diffstat (limited to 'tests/Lexer')
-rw-r--r-- | tests/Lexer/ContextTest.php | 4 | ||||
-rw-r--r-- | tests/Lexer/IsMethodsTest.php | 6 | ||||
-rw-r--r-- | tests/Lexer/LexerTest.php | 4 | ||||
-rw-r--r-- | tests/Lexer/TokenTest.php | 2 | ||||
-rw-r--r-- | tests/Lexer/TokensListTest.php | 2 |
5 files changed, 4 insertions, 14 deletions
diff --git a/tests/Lexer/ContextTest.php b/tests/Lexer/ContextTest.php index 6f4e661..bfa1748 100644 --- a/tests/Lexer/ContextTest.php +++ b/tests/Lexer/ContextTest.php @@ -3,12 +3,10 @@ namespace SqlParser\Tests\Lexer; use SqlParser\Context; - use SqlParser\Tests\TestCase; class ContextTest extends TestCase { - public function testLoad() { // Default context is 5.7.0. @@ -34,7 +32,7 @@ class ContextTest extends TestCase } /** - * @expectedException Exception + * @expectedException \Exception * @expectedExceptionMessage Specified context ("\SqlParser\Contexts\ContextFoo") does not exist. */ public function testLoadError() diff --git a/tests/Lexer/IsMethodsTest.php b/tests/Lexer/IsMethodsTest.php index ac6d3ca..44b5a8a 100644 --- a/tests/Lexer/IsMethodsTest.php +++ b/tests/Lexer/IsMethodsTest.php @@ -4,12 +4,10 @@ namespace SqlParser\Tests\Lexer; use SqlParser\Context; use SqlParser\Token; - use SqlParser\Tests\TestCase; class IsMethodsTest extends TestCase { - public function testIsKeyword() { $this->assertEquals(1 | Token::FLAG_KEYWORD_RESERVED, Context::isKeyword('SELECT')); @@ -47,12 +45,12 @@ class IsMethodsTest extends TestCase public function testIsWhitespace() { - $this->assertTrue(Context::isWhitespace(" ")); + $this->assertTrue(Context::isWhitespace(' ')); $this->assertTrue(Context::isWhitespace("\r")); $this->assertTrue(Context::isWhitespace("\n")); $this->assertTrue(Context::isWhitespace("\t")); - $this->assertFalse(Context::isWhitespace("a")); + $this->assertFalse(Context::isWhitespace('a')); $this->assertFalse(Context::isWhitespace("\b")); $this->assertFalse(Context::isWhitespace("\u1000")); } diff --git a/tests/Lexer/LexerTest.php b/tests/Lexer/LexerTest.php index 0bcd3f7..8893d7b 100644 --- a/tests/Lexer/LexerTest.php +++ b/tests/Lexer/LexerTest.php @@ -4,12 +4,10 @@ namespace SqlParser\Tests\Lexer; use SqlParser\Exceptions\LexerException; use SqlParser\Lexer; - use SqlParser\Tests\TestCase; class LexerTest extends TestCase { - /** * @runInSeparateProcess * @preserveGlobalState disabled @@ -36,7 +34,7 @@ class LexerTest extends TestCase } /** - * @expectedException SqlParser\Exceptions\LexerException + * @expectedException \SqlParser\Exceptions\LexerException * @expectedExceptionMessage strict error * @expectedExceptionCode 4 */ diff --git a/tests/Lexer/TokenTest.php b/tests/Lexer/TokenTest.php index 24e2a4d..bc4f4f0 100644 --- a/tests/Lexer/TokenTest.php +++ b/tests/Lexer/TokenTest.php @@ -3,12 +3,10 @@ namespace SqlParser\Tests\Lexer; use SqlParser\Token; - use SqlParser\Tests\TestCase; class TokenTest extends TestCase { - public function testExtractKeyword() { $tok = new Token('SelecT', Token::TYPE_KEYWORD, Token::FLAG_KEYWORD_RESERVED); diff --git a/tests/Lexer/TokensListTest.php b/tests/Lexer/TokensListTest.php index e3cecff..863a65d 100644 --- a/tests/Lexer/TokensListTest.php +++ b/tests/Lexer/TokensListTest.php @@ -4,12 +4,10 @@ namespace SqlParser\Tests\Lexer; use SqlParser\Token; use SqlParser\TokensList; - use SqlParser\Tests\TestCase; class TokensListTest extends TestCase { - /** * ArrayObj of tokens that are used for testing. * |