1
0
Fork 0

Mark test incomplete instead of commenting it out

pull/357/head
Rob Lourens 2017-06-07 11:38:46 -07:00
parent 829d3075f7
commit af5a5fe172
1 changed files with 24 additions and 24 deletions

View File

@ -127,28 +127,28 @@ class ParseErrorsTest extends TestCase
], json_decode(json_encode($this->args), true)); ], json_decode(json_encode($this->args), true));
} }
// This diagnostic not yet implemented in tolerant-php-parser public function testParseErrorsWithOnlyStartLine()
// public function testParseErrorsWithOnlyStartLine() {
// { $this->markTestIncomplete('This diagnostic not yet implemented in tolerant-php-parser');
// $this->openFile(__DIR__ . '/../../../fixtures/namespace_not_first.php'); $this->openFile(__DIR__ . '/../../../fixtures/namespace_not_first.php');
// $this->assertEquals([ $this->assertEquals([
// 'whatever', 'whatever',
// [[ [[
// 'range' => [ 'range' => [
// 'start' => [ 'start' => [
// 'line' => 4, 'line' => 4,
// 'character' => 0 'character' => 0
// ], ],
// 'end' => [ 'end' => [
// 'line' => 4, 'line' => 4,
// 'character' => 0 'character' => 0
// ] ]
// ], ],
// 'severity' => DiagnosticSeverity::ERROR, 'severity' => DiagnosticSeverity::ERROR,
// 'code' => null, 'code' => null,
// 'source' => 'php', 'source' => 'php',
// 'message' => "Namespace declaration statement has to be the very first statement in the script" 'message' => "Namespace declaration statement has to be the very first statement in the script"
// ]] ]]
// ], json_decode(json_encode($this->args), true)); ], json_decode(json_encode($this->args), true));
// } }
} }