fix: We don't need these
parent
107c962df8
commit
637f2bc741
|
@ -105,8 +105,6 @@ abstract class ServerTestCase extends TestCase
|
||||||
'TestNamespace\\TestClass::staticTestProperty' => new Location($symbolsUri, new Range(new Position(34, 18), new Position(34, 37))),
|
'TestNamespace\\TestClass::staticTestProperty' => new Location($symbolsUri, new Range(new Position(34, 18), new Position(34, 37))),
|
||||||
'TestNamespace\\TestClass::staticTestMethod()' => new Location($symbolsUri, new Range(new Position(46, 4), new Position(49, 5))),
|
'TestNamespace\\TestClass::staticTestMethod()' => new Location($symbolsUri, new Range(new Position(46, 4), new Position(49, 5))),
|
||||||
'TestNamespace\\TestClass::testMethod()' => new Location($symbolsUri, new Range(new Position(57, 4), new Position(60, 5))),
|
'TestNamespace\\TestClass::testMethod()' => new Location($symbolsUri, new Range(new Position(57, 4), new Position(60, 5))),
|
||||||
'TestNamespace\\ChildClass::staticTestProperty'=> new Location($symbolsUri, new Range(new Position(34, 18), new Position(34, 37))),
|
|
||||||
'TestNamespace\\ChildClass::staticTestMethod()'=> new Location($symbolsUri, new Range(new Position(46, 4), new Position(49, 5))),
|
|
||||||
'TestNamespace\\test_function()' => new Location($symbolsUri, new Range(new Position(78, 0), new Position(81, 1))),
|
'TestNamespace\\test_function()' => new Location($symbolsUri, new Range(new Position(78, 0), new Position(81, 1))),
|
||||||
'TestNamespace\\whatever()' => new Location($referencesUri, new Range(new Position(21, 0), new Position(23, 1))),
|
'TestNamespace\\whatever()' => new Location($referencesUri, new Range(new Position(21, 0), new Position(23, 1))),
|
||||||
'TestNamespace\\Example' => new Location($symbolsUri, new Range(new Position(101, 0), new Position(104, 1))),
|
'TestNamespace\\Example' => new Location($symbolsUri, new Range(new Position(101, 0), new Position(104, 1))),
|
||||||
|
|
|
@ -198,28 +198,4 @@ class GlobalTest extends ServerTestCase
|
||||||
)->wait();
|
)->wait();
|
||||||
$this->assertEquals([], $result);
|
$this->assertEquals([], $result);
|
||||||
}
|
}
|
||||||
public function testReferencesForInheritedStaticMethods()
|
|
||||||
{
|
|
||||||
// public static function staticTestMethod()
|
|
||||||
// Get references for staticTestMethod
|
|
||||||
$definition = $this->getDefinitionLocation('ChildClass::staticTestMethod()');
|
|
||||||
$result = $this->textDocument->references(
|
|
||||||
new ReferenceContext,
|
|
||||||
new TextDocumentIdentifier($definition->uri),
|
|
||||||
$definition->range->start
|
|
||||||
)->wait();
|
|
||||||
$this->assertEquals($this->getReferenceLocations('TestClass::staticTestMethod()'), $result);
|
|
||||||
}
|
|
||||||
public function testReferencesForInheritedStaticProperties()
|
|
||||||
{
|
|
||||||
// public static $staticTestProperty;
|
|
||||||
// Get references for $staticTestProperty
|
|
||||||
$definition = $this->getDefinitionLocation('ChildClass::staticTestProperty');
|
|
||||||
$result = $this->textDocument->references(
|
|
||||||
new ReferenceContext,
|
|
||||||
new TextDocumentIdentifier($definition->uri),
|
|
||||||
$definition->range->start
|
|
||||||
)->wait();
|
|
||||||
$this->assertEquals($this->getReferenceLocations('TestClass::staticTestProperty'), $result);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue