From af5a5fe172aa9ed3f3f3d7a4bd1f000e7652a044 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Wed, 7 Jun 2017 11:38:46 -0700 Subject: [PATCH] Mark test incomplete instead of commenting it out --- tests/Server/TextDocument/ParseErrorsTest.php | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/tests/Server/TextDocument/ParseErrorsTest.php b/tests/Server/TextDocument/ParseErrorsTest.php index 8e37704..4428523 100644 --- a/tests/Server/TextDocument/ParseErrorsTest.php +++ b/tests/Server/TextDocument/ParseErrorsTest.php @@ -127,28 +127,28 @@ class ParseErrorsTest extends TestCase ], json_decode(json_encode($this->args), true)); } - // This diagnostic not yet implemented in tolerant-php-parser - // public function testParseErrorsWithOnlyStartLine() - // { - // $this->openFile(__DIR__ . '/../../../fixtures/namespace_not_first.php'); - // $this->assertEquals([ - // 'whatever', - // [[ - // 'range' => [ - // 'start' => [ - // 'line' => 4, - // 'character' => 0 - // ], - // 'end' => [ - // 'line' => 4, - // 'character' => 0 - // ] - // ], - // 'severity' => DiagnosticSeverity::ERROR, - // 'code' => null, - // 'source' => 'php', - // 'message' => "Namespace declaration statement has to be the very first statement in the script" - // ]] - // ], json_decode(json_encode($this->args), true)); - // } + public function testParseErrorsWithOnlyStartLine() + { + $this->markTestIncomplete('This diagnostic not yet implemented in tolerant-php-parser'); + $this->openFile(__DIR__ . '/../../../fixtures/namespace_not_first.php'); + $this->assertEquals([ + 'whatever', + [[ + 'range' => [ + 'start' => [ + 'line' => 4, + 'character' => 0 + ], + 'end' => [ + 'line' => 4, + 'character' => 0 + ] + ], + 'severity' => DiagnosticSeverity::ERROR, + 'code' => null, + 'source' => 'php', + 'message' => "Namespace declaration statement has to be the very first statement in the script" + ]] + ], json_decode(json_encode($this->args), true)); + } }