update tests
parent
2d91ee8eff
commit
b7c712842f
|
@ -615,18 +615,6 @@ class CompletionTest extends TestCase
|
||||||
new Position(12, 16)
|
new Position(12, 16)
|
||||||
)->wait();
|
)->wait();
|
||||||
$this->assertEquals(new CompletionList([
|
$this->assertEquals(new CompletionList([
|
||||||
new CompletionItem(
|
|
||||||
'testProperty',
|
|
||||||
CompletionItemKind::PROPERTY,
|
|
||||||
'\TestClass', // Type of the property
|
|
||||||
'Reprehenderit magna velit mollit ipsum do.'
|
|
||||||
),
|
|
||||||
new CompletionItem(
|
|
||||||
'testMethod',
|
|
||||||
CompletionItemKind::METHOD,
|
|
||||||
'\TestClass', // Return type of the method
|
|
||||||
'Non culpa nostrud mollit esse sunt laboris in irure ullamco cupidatat amet.'
|
|
||||||
),
|
|
||||||
new CompletionItem(
|
new CompletionItem(
|
||||||
'foo',
|
'foo',
|
||||||
CompletionItemKind::PROPERTY,
|
CompletionItemKind::PROPERTY,
|
||||||
|
@ -650,7 +638,19 @@ class CompletionTest extends TestCase
|
||||||
CompletionItemKind::METHOD,
|
CompletionItemKind::METHOD,
|
||||||
'mixed', // Return type of the method
|
'mixed', // Return type of the method
|
||||||
null
|
null
|
||||||
)
|
),
|
||||||
|
new CompletionItem(
|
||||||
|
'testProperty',
|
||||||
|
CompletionItemKind::PROPERTY,
|
||||||
|
'\TestClass', // Type of the property
|
||||||
|
'Reprehenderit magna velit mollit ipsum do.'
|
||||||
|
),
|
||||||
|
new CompletionItem(
|
||||||
|
'testMethod',
|
||||||
|
CompletionItemKind::METHOD,
|
||||||
|
'\TestClass', // Return type of the method
|
||||||
|
'Non culpa nostrud mollit esse sunt laboris in irure ullamco cupidatat amet.'
|
||||||
|
),
|
||||||
], true), $items);
|
], true), $items);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -663,11 +663,6 @@ class CompletionTest extends TestCase
|
||||||
new Position(17, 23)
|
new Position(17, 23)
|
||||||
)->wait();
|
)->wait();
|
||||||
$this->assertEquals(new CompletionList([
|
$this->assertEquals(new CompletionList([
|
||||||
new CompletionItem(
|
|
||||||
'foo',
|
|
||||||
CompletionItemKind::METHOD,
|
|
||||||
'$this' // Return type of the method
|
|
||||||
),
|
|
||||||
new CompletionItem(
|
new CompletionItem(
|
||||||
'bar',
|
'bar',
|
||||||
CompletionItemKind::METHOD,
|
CompletionItemKind::METHOD,
|
||||||
|
@ -677,7 +672,12 @@ class CompletionTest extends TestCase
|
||||||
'qux',
|
'qux',
|
||||||
CompletionItemKind::METHOD,
|
CompletionItemKind::METHOD,
|
||||||
'mixed' // Return type of the method
|
'mixed' // Return type of the method
|
||||||
)
|
),
|
||||||
|
new CompletionItem(
|
||||||
|
'foo',
|
||||||
|
CompletionItemKind::METHOD,
|
||||||
|
'$this' // Return type of the method
|
||||||
|
),
|
||||||
], true), $items);
|
], true), $items);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue