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));
}
// 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));
}
}