Fixing phpcs errors
parent
73ab1520a3
commit
fd9d326c7a
|
@ -72,18 +72,26 @@ class CompletionWithVisibilityTest extends TestCase
|
|||
// doesn't contain any of these properties and methods
|
||||
$this->assertCompletionsListSubsetNotContains(new CompletionList([
|
||||
new CompletionItem(
|
||||
'privateProperty', CompletionItemKind::PROPERTY, '\TestClass',
|
||||
'privateProperty',
|
||||
CompletionItemKind::PROPERTY,
|
||||
'\TestClass',
|
||||
'Reprehenderit magna velit mollit ipsum do.'
|
||||
),
|
||||
new CompletionItem(
|
||||
'privateTestMethod', CompletionItemKind::METHOD, 'mixed' // Return type of the method
|
||||
'privateTestMethod',
|
||||
CompletionItemKind::METHOD,
|
||||
'mixed' // Return type of the method
|
||||
),
|
||||
new CompletionItem(
|
||||
'protectedProperty', CompletionItemKind::PROPERTY, '\TestClass',
|
||||
'protectedProperty',
|
||||
CompletionItemKind::PROPERTY,
|
||||
'\TestClass',
|
||||
'Reprehenderit magna velit mollit ipsum do.'
|
||||
),
|
||||
new CompletionItem(
|
||||
'protectedTestMethod', CompletionItemKind::METHOD, 'mixed' // Return type of the method
|
||||
'protectedTestMethod',
|
||||
CompletionItemKind::METHOD,
|
||||
'mixed' // Return type of the method
|
||||
)
|
||||
], true), $items);
|
||||
}
|
||||
|
@ -99,11 +107,15 @@ class CompletionWithVisibilityTest extends TestCase
|
|||
// doesn't contain any of these properties and methods
|
||||
$this->assertCompletionsListSubsetNotContains(new CompletionList([
|
||||
new CompletionItem(
|
||||
'privateProperty', CompletionItemKind::PROPERTY, '\TestClass',
|
||||
'privateProperty',
|
||||
CompletionItemKind::PROPERTY,
|
||||
'\TestClass',
|
||||
'Reprehenderit magna velit mollit ipsum do.'
|
||||
),
|
||||
new CompletionItem(
|
||||
'privateTestMethod', CompletionItemKind::METHOD, 'mixed' // Return type of the method
|
||||
'privateTestMethod',
|
||||
CompletionItemKind::METHOD,
|
||||
'mixed' // Return type of the method
|
||||
)
|
||||
], true), $items);
|
||||
}
|
||||
|
@ -114,18 +126,26 @@ class CompletionWithVisibilityTest extends TestCase
|
|||
// can see all properties and methods
|
||||
$this->assertCompletionsListSubset(new CompletionList([
|
||||
new CompletionItem(
|
||||
'privateProperty', CompletionItemKind::PROPERTY, '\TestClass',
|
||||
'privateProperty',
|
||||
CompletionItemKind::PROPERTY,
|
||||
'\TestClass',
|
||||
'Reprehenderit magna velit mollit ipsum do.'
|
||||
),
|
||||
new CompletionItem(
|
||||
'privateTestMethod', CompletionItemKind::METHOD, 'mixed' // Return type of the method
|
||||
'privateTestMethod',
|
||||
CompletionItemKind::METHOD,
|
||||
'mixed' // Return type of the method
|
||||
),
|
||||
new CompletionItem(
|
||||
'protectedProperty', CompletionItemKind::PROPERTY, '\TestClass',
|
||||
'protectedProperty',
|
||||
CompletionItemKind::PROPERTY,
|
||||
'\TestClass',
|
||||
'Reprehenderit magna velit mollit ipsum do.'
|
||||
),
|
||||
new CompletionItem(
|
||||
'protectedTestMethod', CompletionItemKind::METHOD, 'mixed' // Return type of the method
|
||||
'protectedTestMethod',
|
||||
CompletionItemKind::METHOD,
|
||||
'mixed' // Return type of the method
|
||||
),
|
||||
new CompletionItem(
|
||||
'testProperty',
|
||||
|
@ -140,7 +160,6 @@ class CompletionWithVisibilityTest extends TestCase
|
|||
'Non culpa nostrud mollit esse sunt laboris in irure ullamco cupidatat amet.'
|
||||
)
|
||||
], true), $items);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -155,7 +174,8 @@ class CompletionWithVisibilityTest extends TestCase
|
|||
$completionUri = pathToUri($this->fixturesPath . $fixtureFile);
|
||||
$this->loader->open($completionUri, file_get_contents($completionUri));
|
||||
return $this->textDocument->completion(
|
||||
new TextDocumentIdentifier($completionUri), new Position($line, $char)
|
||||
new TextDocumentIdentifier($completionUri),
|
||||
new Position($line, $char)
|
||||
)->wait();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue