From 34ad734ff0298d34c96e432665ed0de2726c5915 Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Mon, 6 Feb 2017 11:29:40 +0100 Subject: [PATCH] Fix assertion --- tests/Server/TextDocument/CompletionTest.php | 22 +++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tests/Server/TextDocument/CompletionTest.php b/tests/Server/TextDocument/CompletionTest.php index 2d66277..dd9e680 100644 --- a/tests/Server/TextDocument/CompletionTest.php +++ b/tests/Server/TextDocument/CompletionTest.php @@ -443,24 +443,26 @@ class CompletionTest extends TestCase new Position(4, 8) )->wait(); $this->assertEquals(new CompletionList([ - new CompletionItem( - '$abc', - CompletionItemKind::VARIABLE, - null, - null, - null, - null, - '$abc' - ), new CompletionItem( '$abc2', CompletionItemKind::VARIABLE, + 'int', null, null, null, null, - '$abc2' + new TextEdit(new Range(new Position(4, 8), new Position(4, 8)), 'c2') ), + new CompletionItem( + '$abc', + CompletionItemKind::VARIABLE, + 'int', + null, + null, + null, + null, + new TextEdit(new Range(new Position(4, 8), new Position(4, 8)), 'c') + ) ], true), $items); } }