Updated tests
parent
75e5e249da
commit
6980fb5da7
|
@ -12,4 +12,4 @@ class HelpClass1
|
||||||
}
|
}
|
||||||
|
|
||||||
$a = new HelpClass1;
|
$a = new HelpClass1;
|
||||||
$a->method(1, );
|
$a->method();
|
|
@ -72,13 +72,11 @@ class SignatureHelpTest extends TestCase
|
||||||
$this->loader->open($completionUri, file_get_contents($completionUri));
|
$this->loader->open($completionUri, file_get_contents($completionUri));
|
||||||
$result = $this->textDocument->signatureHelp(
|
$result = $this->textDocument->signatureHelp(
|
||||||
new TextDocumentIdentifier($completionUri),
|
new TextDocumentIdentifier($completionUri),
|
||||||
new Position(14, 14)
|
new Position(14, 11)
|
||||||
)->wait();
|
)->wait();
|
||||||
|
|
||||||
$help = new SignatureHelp;
|
$help = new SignatureHelp;
|
||||||
$help->signatures = [];
|
$help->signatures = [];
|
||||||
$help->activeSignature = 0;
|
|
||||||
$help->activeParameter = 1;
|
|
||||||
$info = new SignatureInformation;
|
$info = new SignatureInformation;
|
||||||
$help->signatures[] = $info;
|
$help->signatures[] = $info;
|
||||||
$info->label = 'method(string $param = "")';
|
$info->label = 'method(string $param = "")';
|
||||||
|
|
Loading…
Reference in New Issue