Fix whitespace errors
parent
7138088b4f
commit
72d776d638
|
@ -24,7 +24,7 @@ class TextDocumentTest extends TestCase
|
||||||
// Request symbols
|
// Request symbols
|
||||||
$result = $textDocument->documentSymbol(new TextDocumentIdentifier('whatever'));
|
$result = $textDocument->documentSymbol(new TextDocumentIdentifier('whatever'));
|
||||||
$this->assertEquals([
|
$this->assertEquals([
|
||||||
[
|
[
|
||||||
'name' => 'TestNamespace',
|
'name' => 'TestNamespace',
|
||||||
'kind' => SymbolKind::NAMESPACE,
|
'kind' => SymbolKind::NAMESPACE,
|
||||||
'location' => [
|
'location' => [
|
||||||
|
@ -197,7 +197,7 @@ class TextDocumentTest extends TestCase
|
||||||
]]
|
]]
|
||||||
], json_decode(json_encode($args), true));
|
], json_decode(json_encode($args), true));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testFormatting()
|
public function testFormatting()
|
||||||
{
|
{
|
||||||
$textDocument = new Server\TextDocument(new LanguageClient(new MockProtocolStream()));
|
$textDocument = new Server\TextDocument(new LanguageClient(new MockProtocolStream()));
|
||||||
|
@ -208,7 +208,7 @@ class TextDocumentTest extends TestCase
|
||||||
$textDocumentItem->version = 1;
|
$textDocumentItem->version = 1;
|
||||||
$textDocumentItem->text = file_get_contents(__DIR__ . '/../../fixtures/format.php');
|
$textDocumentItem->text = file_get_contents(__DIR__ . '/../../fixtures/format.php');
|
||||||
$textDocument->didOpen($textDocumentItem);
|
$textDocument->didOpen($textDocumentItem);
|
||||||
|
|
||||||
// how code should look after formatting
|
// how code should look after formatting
|
||||||
$expected = file_get_contents(__DIR__ . '/../../fixtures/format_expected.php');
|
$expected = file_get_contents(__DIR__ . '/../../fixtures/format_expected.php');
|
||||||
// Request formatting
|
// Request formatting
|
||||||
|
|
Loading…
Reference in New Issue