Fix tests for unused symbols
parent
6cc45c61b0
commit
249d3727f2
|
@ -164,11 +164,11 @@ class GlobalTest extends ServerTestCase
|
||||||
{
|
{
|
||||||
// class UnusedClass
|
// class UnusedClass
|
||||||
// Get references for UnusedClass
|
// Get references for UnusedClass
|
||||||
$definition = $this->getDefinitionLocation('UnusedClass');
|
$symbolsUri = pathToUri(realpath(__DIR__ . '/../../../../fixtures/global_symbols.php'));
|
||||||
$result = $this->textDocument->references(
|
$result = $this->textDocument->references(
|
||||||
new ReferenceContext,
|
new ReferenceContext,
|
||||||
new TextDocumentIdentifier($definition->uri),
|
new TextDocumentIdentifier($symbolsUri),
|
||||||
$definition->range->start
|
new Position(111, 10)
|
||||||
)->wait();
|
)->wait();
|
||||||
$this->assertEquals([], $result);
|
$this->assertEquals([], $result);
|
||||||
}
|
}
|
||||||
|
@ -177,11 +177,11 @@ class GlobalTest extends ServerTestCase
|
||||||
{
|
{
|
||||||
// public $unusedProperty
|
// public $unusedProperty
|
||||||
// Get references for unusedProperty
|
// Get references for unusedProperty
|
||||||
$definition = $this->getDefinitionLocation('UnusedClass::unusedProperty');
|
$symbolsUri = pathToUri(realpath(__DIR__ . '/../../../../fixtures/global_symbols.php'));
|
||||||
$result = $this->textDocument->references(
|
$result = $this->textDocument->references(
|
||||||
new ReferenceContext,
|
new ReferenceContext,
|
||||||
new TextDocumentIdentifier($definition->uri),
|
new TextDocumentIdentifier($symbolsUri),
|
||||||
$definition->range->start
|
new Position(113, 18)
|
||||||
)->wait();
|
)->wait();
|
||||||
$this->assertEquals([], $result);
|
$this->assertEquals([], $result);
|
||||||
}
|
}
|
||||||
|
@ -190,11 +190,11 @@ class GlobalTest extends ServerTestCase
|
||||||
{
|
{
|
||||||
// public function unusedMethod()
|
// public function unusedMethod()
|
||||||
// Get references for unusedMethod
|
// Get references for unusedMethod
|
||||||
$definition = $this->getDefinitionLocation('UnusedClass::unusedMethod');
|
$symbolsUri = pathToUri(realpath(__DIR__ . '/../../../../fixtures/global_symbols.php'));
|
||||||
$result = $this->textDocument->references(
|
$result = $this->textDocument->references(
|
||||||
new ReferenceContext,
|
new ReferenceContext,
|
||||||
new TextDocumentIdentifier($definition->uri),
|
new TextDocumentIdentifier($symbolsUri),
|
||||||
$definition->range->start
|
new Position(115, 26)
|
||||||
)->wait();
|
)->wait();
|
||||||
$this->assertEquals([], $result);
|
$this->assertEquals([], $result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue