From 0c0dfed57386c3547b021ec02254fae4d7020029 Mon Sep 17 00:00:00 2001 From: Michal Niewrzal Date: Tue, 6 Sep 2016 12:04:47 +0200 Subject: [PATCH] Support document formatting #8 --- tests/Server/TextDocumentTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Server/TextDocumentTest.php b/tests/Server/TextDocumentTest.php index 687b4b6..5cbe470 100644 --- a/tests/Server/TextDocumentTest.php +++ b/tests/Server/TextDocumentTest.php @@ -206,11 +206,11 @@ class TextDocumentTest extends TestCase $textDocumentItem->uri = 'whatever'; $textDocumentItem->languageId = 'php'; $textDocumentItem->version = 1; - $textDocumentItem->text = file_get_contents(__DIR__ . '/../../fixtures/Format.php'); + $textDocumentItem->text = file_get_contents(__DIR__ . '/../../fixtures/format.php'); $textDocument->didOpen($textDocumentItem); // 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 $result = $textDocument->formatting(new TextDocumentIdentifier('whatever'), new FormattingOptions()); $this->assertEquals([0 => [