1
0
Fork 0

Cleanup ValidationTest some more

pull/357/head
Rob Lourens 2017-06-07 14:00:12 -07:00
parent af5a5fe172
commit b2a849d6d2
62 changed files with 283 additions and 298 deletions

View File

@ -21,48 +21,37 @@ use RecursiveIteratorIterator;
use Sabre\Event\Loop; use Sabre\Event\Loop;
use Microsoft\PhpParser; use Microsoft\PhpParser;
$frameworksDir = realpath(__DIR__ . '/../../validation/frameworks');
class ValidationTest extends TestCase class ValidationTest extends TestCase
{ {
public function frameworkErrorProvider() public function validationTestProvider()
{ {
global $frameworksDir;
$frameworks = glob($frameworksDir . '/*', GLOB_ONLYDIR);
$testProviderArray = array(); $testProviderArray = array();
foreach ($frameworks as $frameworkDir) { $testCasesDir = realpath(__DIR__ . '/../../validation/frameworks/_cases');
$frameworkName = basename($frameworkDir);
if ($frameworkName !== '_cases') {
continue;
}
$iterator = new RecursiveDirectoryIterator($frameworkDir); $iterator = new RecursiveDirectoryIterator($testCasesDir);
$skipped = json_decode(file_get_contents(__DIR__ . '/skipped.json')); $disabled = json_decode(file_get_contents(__DIR__ . '/disabled.json'));
foreach (new RecursiveIteratorIterator($iterator) as $file) { foreach (new RecursiveIteratorIterator($iterator) as $file) {
if (strpos(\strrev((string)$file), \strrev(".php")) === 0 && !\in_array(basename((string)$file), $skipped)) { if (strpos(\strrev((string)$file), \strrev(".php")) === 0 && !\in_array(basename((string)$file), $disabled)) {
if ($file->getSize() < 100000) { if ($file->getSize() < 100000) {
$testProviderArray[$frameworkName . "::" . $file->getBasename()] = [$file->getPathname(), $frameworkName]; $testProviderArray[] = [$file->getPathname()];
} }
} }
} }
}
if (count($testProviderArray) === 0) {
throw new Exception("ERROR: Validation testsuite frameworks not found - run `git submodule update --init --recursive` to download.");
}
return $testProviderArray; return $testProviderArray;
} }
/** /**
* This test loads the test cases specified in .php files under cases/ and looks at the whole set of
* Definitions and References produced. It reads the expected results from associated .json files
* and compares to the actual result. If they don't match, the test fails and it writes the new baseline
* to the .json file.
* @group validation * @group validation
* @dataProvider frameworkErrorProvider * @dataProvider validationTestProvider
* @param $testCaseFile * @param $testCaseFile
* @param $frameworkName
*/ */
public function testDefinitionErrors($testCaseFile, $frameworkName) public function testDefinitionsAndReferences($testCaseFile)
{ {
$fileContents = file_get_contents($testCaseFile); $fileContents = file_get_contents($testCaseFile);
$actualValues = $this->getActualTestValues($testCaseFile, $fileContents); $actualValues = $this->getActualTestValues($testCaseFile, $fileContents);
@ -84,9 +73,7 @@ class ValidationTest extends TestCase
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
$outputFile = getExpectedValuesFile($testCaseFile); $outputFile = getExpectedValuesFile($testCaseFile);
if ($frameworkName === '_cases') {
file_put_contents($outputFile, json_encode($actualValues, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES)); file_put_contents($outputFile, json_encode($actualValues, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));
}
throw $e; throw $e;
} }
@ -94,8 +81,6 @@ class ValidationTest extends TestCase
private function getActualTestValues($filename, $fileContents): array private function getActualTestValues($filename, $fileContents): array
{ {
global $frameworksDir;
$index = new Index(); $index = new Index();
$parser = new PhpParser\Parser(); $parser = new PhpParser\Parser();
$docBlockFactory = DocBlockFactory::createInstance(); $docBlockFactory = DocBlockFactory::createInstance();
@ -115,10 +100,10 @@ class ValidationTest extends TestCase
); );
// Turn references into relative paths // Turn references into relative paths
$testCasesDir = realpath(__DIR__ . '/../../validation/frameworks/_cases');
foreach ($refsAndDefs['references'] as $key => $list) { foreach ($refsAndDefs['references'] as $key => $list) {
$fixedPathRefs = array_map(function ($ref) { $fixedPathRefs = array_map(function ($ref) use ($testCasesDir) {
global $frameworksDir; return str_replace($testCasesDir, '.', $ref);
return str_replace($frameworksDir, '.', $ref);
}, $list); }, $list);
$refsAndDefs['references']->$key = $fixedPathRefs; $refsAndDefs['references']->$key = $fixedPathRefs;
@ -128,7 +113,7 @@ class ValidationTest extends TestCase
foreach ($refsAndDefs['definitions'] as $key => $def) { foreach ($refsAndDefs['definitions'] as $key => $def) {
if ($def !== null && $def->symbolInformation !== null && if ($def !== null && $def->symbolInformation !== null &&
$def->symbolInformation->location !== null && $def->symbolInformation->location->uri !== null) { $def->symbolInformation->location !== null && $def->symbolInformation->location->uri !== null) {
$def->symbolInformation->location->uri = str_replace($frameworksDir, '.', $def->symbolInformation->location->uri); $def->symbolInformation->location->uri = str_replace($testCasesDir, '.', $def->symbolInformation->location->uri);
} }
} }

View File

@ -1,13 +1,13 @@
{ {
"references": { "references": {
"Fixtures\\Prophecy\\EmptyClass": [ "Fixtures\\Prophecy\\EmptyClass": [
"./_cases/WithReturnTypehints.php" "./WithReturnTypehints.php"
], ],
"self": [ "self": [
"./_cases/WithReturnTypehints.php" "./WithReturnTypehints.php"
], ],
"parent": [ "parent": [
"./_cases/WithReturnTypehints.php" "./WithReturnTypehints.php"
] ]
}, },
"definitions": { "definitions": {
@ -20,7 +20,7 @@
"name": "Fixtures\\Prophecy", "name": "Fixtures\\Prophecy",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/WithReturnTypehints.php" "uri": "./WithReturnTypehints.php"
}, },
"containerName": "Fixtures" "containerName": "Fixtures"
}, },
@ -38,7 +38,7 @@
"name": "WithReturnTypehints", "name": "WithReturnTypehints",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/WithReturnTypehints.php" "uri": "./WithReturnTypehints.php"
}, },
"containerName": "Fixtures\\Prophecy" "containerName": "Fixtures\\Prophecy"
}, },
@ -54,7 +54,7 @@
"name": "getSelf", "name": "getSelf",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/WithReturnTypehints.php" "uri": "./WithReturnTypehints.php"
}, },
"containerName": "Fixtures\\Prophecy\\WithReturnTypehints" "containerName": "Fixtures\\Prophecy\\WithReturnTypehints"
}, },
@ -71,7 +71,7 @@
"name": "getName", "name": "getName",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/WithReturnTypehints.php" "uri": "./WithReturnTypehints.php"
}, },
"containerName": "Fixtures\\Prophecy\\WithReturnTypehints" "containerName": "Fixtures\\Prophecy\\WithReturnTypehints"
}, },
@ -88,7 +88,7 @@
"name": "getParent", "name": "getParent",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/WithReturnTypehints.php" "uri": "./WithReturnTypehints.php"
}, },
"containerName": "Fixtures\\Prophecy\\WithReturnTypehints" "containerName": "Fixtures\\Prophecy\\WithReturnTypehints"
}, },

View File

@ -10,7 +10,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/anonymousClassMembersShouldNotBeSymbols.php" "uri": "./anonymousClassMembersShouldNotBeSymbols.php"
}, },
"containerName": "" "containerName": ""
}, },

View File

@ -10,7 +10,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/arrayValueShouldBeBoolean.php" "uri": "./arrayValueShouldBeBoolean.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -26,7 +26,7 @@
"name": "foo", "name": "foo",
"kind": 7, "kind": 7,
"location": { "location": {
"uri": "./_cases/arrayValueShouldBeBoolean.php" "uri": "./arrayValueShouldBeBoolean.php"
}, },
"containerName": "A" "containerName": "A"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"MyNamespace\\A": [ "MyNamespace\\A": [
"./_cases/caseStatement1.php" "./caseStatement1.php"
], ],
"A": [ "A": [
"./_cases/caseStatement1.php" "./caseStatement1.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/caseStatement1.php" "uri": "./caseStatement1.php"
}, },
"containerName": "" "containerName": ""
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"TestNamespace\\A": [ "TestNamespace\\A": [
"./_cases/classDefinition1.php" "./classDefinition1.php"
], ],
"TestNamespace\\A->a": [ "TestNamespace\\A->a": [
"./_cases/classDefinition1.php" "./classDefinition1.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "TestNamespace", "name": "TestNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/classDefinition1.php" "uri": "./classDefinition1.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/classDefinition1.php" "uri": "./classDefinition1.php"
}, },
"containerName": "TestNamespace" "containerName": "TestNamespace"
}, },
@ -49,7 +49,7 @@
"name": "a", "name": "a",
"kind": 7, "kind": 7,
"location": { "location": {
"uri": "./_cases/classDefinition1.php" "uri": "./classDefinition1.php"
}, },
"containerName": "TestNamespace\\A" "containerName": "TestNamespace\\A"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"SomeNamespace\\Goo": [ "SomeNamespace\\Goo": [
"./_cases/classProperty1.php" "./classProperty1.php"
], ],
"SomeNamespace": [ "SomeNamespace": [
"./_cases/classProperty1.php" "./classProperty1.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "TestNamespace", "name": "TestNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/classProperty1.php" "uri": "./classProperty1.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "TestClass", "name": "TestClass",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/classProperty1.php" "uri": "./classProperty1.php"
}, },
"containerName": "TestNamespace" "containerName": "TestNamespace"
}, },
@ -49,7 +49,7 @@
"name": "testProperty", "name": "testProperty",
"kind": 7, "kind": 7,
"location": { "location": {
"uri": "./_cases/classProperty1.php" "uri": "./classProperty1.php"
}, },
"containerName": "TestNamespace\\TestClass" "containerName": "TestNamespace\\TestClass"
}, },
@ -66,7 +66,7 @@
"name": "testMethod", "name": "testMethod",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/classProperty1.php" "uri": "./classProperty1.php"
}, },
"containerName": "TestNamespace\\TestClass" "containerName": "TestNamespace\\TestClass"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"MyNamespace\\BYE": [ "MyNamespace\\BYE": [
"./_cases/constants.php" "./constants.php"
], ],
"BYE": [ "BYE": [
"./_cases/constants.php" "./constants.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/constants.php" "uri": "./constants.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/constants.php" "uri": "./constants.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -49,7 +49,7 @@
"name": "suite", "name": "suite",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/constants.php" "uri": "./constants.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"MyNamespace\\BYE": [ "MyNamespace\\BYE": [
"./_cases/constants2.php" "./constants2.php"
], ],
"BYE": [ "BYE": [
"./_cases/constants2.php" "./constants2.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/constants2.php" "uri": "./constants2.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/constants2.php" "uri": "./constants2.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -49,7 +49,7 @@
"name": "suite", "name": "suite",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/constants2.php" "uri": "./constants2.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"MyNamespace\\T_NEW": [ "MyNamespace\\T_NEW": [
"./_cases/constants3.php" "./constants3.php"
], ],
"T_NEW": [ "T_NEW": [
"./_cases/constants3.php" "./constants3.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/constants3.php" "uri": "./constants3.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/constants3.php" "uri": "./constants3.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -49,7 +49,7 @@
"name": "suite", "name": "suite",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/constants3.php" "uri": "./constants3.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"MyNamespace\\HI": [ "MyNamespace\\HI": [
"./_cases/constants4.php" "./constants4.php"
], ],
"HI": [ "HI": [
"./_cases/constants4.php" "./constants4.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/constants4.php" "uri": "./constants4.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/constants4.php" "uri": "./constants4.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -49,7 +49,7 @@
"name": "suite", "name": "suite",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/constants4.php" "uri": "./constants4.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,7 +1,7 @@
{ {
"references": { "references": {
"MyNamespace\\PHP_INT_MAX": [ "MyNamespace\\PHP_INT_MAX": [
"./_cases/constants5.php" "./constants5.php"
] ]
}, },
"definitions": { "definitions": {
@ -14,7 +14,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/constants5.php" "uri": "./constants5.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -30,7 +30,7 @@
"name": "Mbstring", "name": "Mbstring",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/constants5.php" "uri": "./constants5.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -46,7 +46,7 @@
"name": "MB_CASE_FOLD", "name": "MB_CASE_FOLD",
"kind": 14, "kind": 14,
"location": { "location": {
"uri": "./_cases/constants5.php" "uri": "./constants5.php"
}, },
"containerName": "MyNamespace\\Mbstring" "containerName": "MyNamespace\\Mbstring"
}, },

View File

@ -1,7 +1,7 @@
{ {
"references": { "references": {
"MY_CONSTANT": [ "MY_CONSTANT": [
"./_cases/constantsInFunctionParamDefault.php" "./constantsInFunctionParamDefault.php"
] ]
}, },
"definitions": { "definitions": {
@ -14,7 +14,7 @@
"name": "A", "name": "A",
"kind": 11, "kind": 11,
"location": { "location": {
"uri": "./_cases/constantsInFunctionParamDefault.php" "uri": "./constantsInFunctionParamDefault.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -30,7 +30,7 @@
"name": "b", "name": "b",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/constantsInFunctionParamDefault.php" "uri": "./constantsInFunctionParamDefault.php"
}, },
"containerName": "A" "containerName": "A"
}, },

View File

@ -10,7 +10,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/docBlocksOnNamespaceDefinition.php" "uri": "./docBlocksOnNamespaceDefinition.php"
}, },
"containerName": "" "containerName": ""
}, },

View File

@ -10,7 +10,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/exceptions1.php" "uri": "./exceptions1.php"
}, },
"containerName": "" "containerName": ""
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"A": [ "A": [
"./_cases/functionUse.php" "./functionUse.php"
], ],
"A->b()": [ "A->b()": [
"./_cases/functionUse.php" "./functionUse.php"
] ]
}, },
"definitions": [] "definitions": []

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"LanguageServer": [ "LanguageServer": [
"./_cases/functionUse2.php" "./functionUse2.php"
], ],
"LanguageServer\\timeout()": [ "LanguageServer\\timeout()": [
"./_cases/functionUse2.php" "./functionUse2.php"
] ]
}, },
"definitions": [] "definitions": []

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"MyNamespace\\A": [ "MyNamespace\\A": [
"./_cases/ifStatement1.php" "./ifStatement1.php"
], ],
"A": [ "A": [
"./_cases/ifStatement1.php" "./ifStatement1.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/ifStatement1.php" "uri": "./ifStatement1.php"
}, },
"containerName": "" "containerName": ""
}, },

View File

@ -10,7 +10,7 @@
"name": "A", "name": "A",
"kind": 11, "kind": 11,
"location": { "location": {
"uri": "./_cases/interfaceProperty.php" "uri": "./interfaceProperty.php"
}, },
"containerName": "" "containerName": ""
}, },

View File

@ -10,7 +10,7 @@
"name": "B", "name": "B",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/magicConstantsShouldBeGlobal.php" "uri": "./magicConstantsShouldBeGlobal.php"
}, },
"containerName": "" "containerName": ""
}, },

View File

@ -10,7 +10,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/magicConsts.php" "uri": "./magicConsts.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -26,7 +26,7 @@
"name": "deprecationsTriggered", "name": "deprecationsTriggered",
"kind": 7, "kind": 7,
"location": { "location": {
"uri": "./_cases/magicConsts.php" "uri": "./magicConsts.php"
}, },
"containerName": "A" "containerName": "A"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"MyNamespace\\a": [ "MyNamespace\\a": [
"./_cases/memberAccess1.php" "./memberAccess1.php"
], ],
"MyNamespace\\a->a()": [ "MyNamespace\\a->a()": [
"./_cases/memberAccess1.php" "./memberAccess1.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/memberAccess1.php" "uri": "./memberAccess1.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/memberAccess1.php" "uri": "./memberAccess1.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -49,7 +49,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/memberAccess1.php" "uri": "./memberAccess1.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"MyNamespace\\a": [ "MyNamespace\\a": [
"./_cases/memberAccess2.php" "./memberAccess2.php"
], ],
"MyNamespace\\a->a()": [ "MyNamespace\\a->a()": [
"./_cases/memberAccess2.php" "./memberAccess2.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/memberAccess2.php" "uri": "./memberAccess2.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/memberAccess2.php" "uri": "./memberAccess2.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -49,7 +49,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/memberAccess2.php" "uri": "./memberAccess2.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,25 +1,25 @@
{ {
"references": { "references": {
"MyNamespace\\ClassLoader": [ "MyNamespace\\ClassLoader": [
"./_cases/memberAccess3.php" "./memberAccess3.php"
], ],
"Closure::bind()": [ "Closure::bind()": [
"./_cases/memberAccess3.php" "./memberAccess3.php"
], ],
"Closure": [ "Closure": [
"./_cases/memberAccess3.php" "./memberAccess3.php"
], ],
"MyNamespace\\ClassLoader->prefixesPsr0": [ "MyNamespace\\ClassLoader->prefixesPsr0": [
"./_cases/memberAccess3.php" "./memberAccess3.php"
], ],
"MyNamespace\\ComposerStaticInitIncludePath": [ "MyNamespace\\ComposerStaticInitIncludePath": [
"./_cases/memberAccess3.php" "./memberAccess3.php"
], ],
"MyNamespace\\ComposerStaticInitIncludePath::$prefixesPsr0": [ "MyNamespace\\ComposerStaticInitIncludePath::$prefixesPsr0": [
"./_cases/memberAccess3.php" "./memberAccess3.php"
], ],
"MyNamespace\\ClassLoader::class": [ "MyNamespace\\ClassLoader::class": [
"./_cases/memberAccess3.php" "./memberAccess3.php"
] ]
}, },
"definitions": { "definitions": {
@ -32,7 +32,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/memberAccess3.php" "uri": "./memberAccess3.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -48,7 +48,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/memberAccess3.php" "uri": "./memberAccess3.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -64,7 +64,7 @@
"name": "getInitializer", "name": "getInitializer",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/memberAccess3.php" "uri": "./memberAccess3.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,16 +1,16 @@
{ {
"references": { "references": {
"MyNamespace\\Request::create()": [ "MyNamespace\\Request::create()": [
"./_cases/memberAccess4.php" "./memberAccess4.php"
], ],
"MyNamespace\\Request": [ "MyNamespace\\Request": [
"./_cases/memberAccess4.php" "./memberAccess4.php"
], ],
"MyNamespace\\Url->toString()": [ "MyNamespace\\Url->toString()": [
"./_cases/memberAccess4.php" "./memberAccess4.php"
], ],
"MyNamespace\\Url": [ "MyNamespace\\Url": [
"./_cases/memberAccess4.php" "./memberAccess4.php"
] ]
}, },
"definitions": { "definitions": {
@ -23,7 +23,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/memberAccess4.php" "uri": "./memberAccess4.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -39,7 +39,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/memberAccess4.php" "uri": "./memberAccess4.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -55,7 +55,7 @@
"name": "testRequest", "name": "testRequest",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/memberAccess4.php" "uri": "./memberAccess4.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -10,7 +10,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/memberAccess5.php" "uri": "./memberAccess5.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -26,7 +26,7 @@
"name": "ParseErrorsTest", "name": "ParseErrorsTest",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/memberAccess5.php" "uri": "./memberAccess5.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -42,7 +42,7 @@
"name": "setUp", "name": "setUp",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/memberAccess5.php" "uri": "./memberAccess5.php"
}, },
"containerName": "MyNamespace\\ParseErrorsTest" "containerName": "MyNamespace\\ParseErrorsTest"
}, },

View File

@ -1,13 +1,13 @@
{ {
"references": { "references": {
"MyNamespace\\AccountInterface": [ "MyNamespace\\AccountInterface": [
"./_cases/memberCall1.php" "./memberCall1.php"
], ],
"MyNamespace\\A": [ "MyNamespace\\A": [
"./_cases/memberCall1.php" "./memberCall1.php"
], ],
"MyNamespace\\AccountInterface->getAccount()": [ "MyNamespace\\AccountInterface->getAccount()": [
"./_cases/memberCall1.php" "./memberCall1.php"
] ]
}, },
"definitions": { "definitions": {
@ -20,7 +20,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/memberCall1.php" "uri": "./memberCall1.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -36,7 +36,7 @@
"name": "ParseErrorsTest", "name": "ParseErrorsTest",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/memberCall1.php" "uri": "./memberCall1.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -52,7 +52,7 @@
"name": "setAccount", "name": "setAccount",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/memberCall1.php" "uri": "./memberCall1.php"
}, },
"containerName": "MyNamespace\\ParseErrorsTest" "containerName": "MyNamespace\\ParseErrorsTest"
}, },

View File

@ -1,16 +1,16 @@
{ {
"references": { "references": {
"MyNamespace2\\MyNamespace1\\B": [ "MyNamespace2\\MyNamespace1\\B": [
"./_cases/multipleNamespaces.php" "./multipleNamespaces.php"
], ],
"MyNamespace2\\MyNamespace1": [ "MyNamespace2\\MyNamespace1": [
"./_cases/multipleNamespaces.php" "./multipleNamespaces.php"
], ],
"MyNamespace2": [ "MyNamespace2": [
"./_cases/multipleNamespaces.php" "./multipleNamespaces.php"
], ],
"MyNamespace2\\A->b()": [ "MyNamespace2\\A->b()": [
"./_cases/multipleNamespaces.php" "./multipleNamespaces.php"
] ]
}, },
"definitions": { "definitions": {
@ -23,7 +23,7 @@
"name": "MyNamespace1", "name": "MyNamespace1",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/multipleNamespaces.php" "uri": "./multipleNamespaces.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -39,7 +39,7 @@
"name": "B", "name": "B",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/multipleNamespaces.php" "uri": "./multipleNamespaces.php"
}, },
"containerName": "MyNamespace1" "containerName": "MyNamespace1"
}, },
@ -55,7 +55,7 @@
"name": "b", "name": "b",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/multipleNamespaces.php" "uri": "./multipleNamespaces.php"
}, },
"containerName": "MyNamespace1\\B" "containerName": "MyNamespace1\\B"
}, },
@ -72,7 +72,7 @@
"name": "MyNamespace2", "name": "MyNamespace2",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/multipleNamespaces.php" "uri": "./multipleNamespaces.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -90,7 +90,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/multipleNamespaces.php" "uri": "./multipleNamespaces.php"
}, },
"containerName": "MyNamespace2" "containerName": "MyNamespace2"
}, },
@ -106,7 +106,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/multipleNamespaces.php" "uri": "./multipleNamespaces.php"
}, },
"containerName": "MyNamespace2\\A" "containerName": "MyNamespace2\\A"
}, },

View File

@ -10,7 +10,7 @@
"name": "Foo", "name": "Foo",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/multiplePreceedingComments.php" "uri": "./multiplePreceedingComments.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -26,7 +26,7 @@
"name": "fn", "name": "fn",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/multiplePreceedingComments.php" "uri": "./multiplePreceedingComments.php"
}, },
"containerName": "Foo" "containerName": "Foo"
}, },

View File

@ -10,7 +10,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/nameToken.php" "uri": "./nameToken.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -26,7 +26,7 @@
"name": "b", "name": "b",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/nameToken.php" "uri": "./nameToken.php"
}, },
"containerName": "A" "containerName": "A"
}, },

View File

@ -1,16 +1,16 @@
{ {
"references": { "references": {
"NS1\\C": [ "NS1\\C": [
"./_cases/namespaces2.php" "./namespaces2.php"
], ],
"NS1": [ "NS1": [
"./_cases/namespaces2.php" "./namespaces2.php"
], ],
"NS1\\I": [ "NS1\\I": [
"./_cases/namespaces2.php" "./namespaces2.php"
], ],
"NS1\\T": [ "NS1\\T": [
"./_cases/namespaces2.php" "./namespaces2.php"
] ]
}, },
"definitions": { "definitions": {
@ -23,7 +23,7 @@
"name": "MyNamespace1", "name": "MyNamespace1",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/namespaces2.php" "uri": "./namespaces2.php"
}, },
"containerName": "" "containerName": ""
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"a\\b": [ "a\\b": [
"./_cases/namespaces4.php" "./namespaces4.php"
], ],
"a": [ "a": [
"./_cases/namespaces4.php" "./namespaces4.php"
] ]
}, },
"definitions": [] "definitions": []

View File

@ -1,25 +1,25 @@
{ {
"references": { "references": {
"LanguageServer\\Protocol": [ "LanguageServer\\Protocol": [
"./_cases/namespaces5.php" "./namespaces5.php"
], ],
"LanguageServer": [ "LanguageServer": [
"./_cases/namespaces5.php" "./namespaces5.php"
], ],
"LanguageServer\\Protocol\\TextDocumentIdentifier": [ "LanguageServer\\Protocol\\TextDocumentIdentifier": [
"./_cases/namespaces5.php" "./namespaces5.php"
], ],
"LanguageServer\\Protocol\\Position": [ "LanguageServer\\Protocol\\Position": [
"./_cases/namespaces5.php" "./namespaces5.php"
], ],
"LanguageServer\\Protocol\\ReferenceContext": [ "LanguageServer\\Protocol\\ReferenceContext": [
"./_cases/namespaces5.php" "./namespaces5.php"
], ],
"LanguageServer\\Protocol\\Location": [ "LanguageServer\\Protocol\\Location": [
"./_cases/namespaces5.php" "./namespaces5.php"
], ],
"LanguageServer\\Protocol\\Range": [ "LanguageServer\\Protocol\\Range": [
"./_cases/namespaces5.php" "./namespaces5.php"
] ]
}, },
"definitions": { "definitions": {
@ -32,7 +32,7 @@
"name": "B", "name": "B",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/namespaces5.php" "uri": "./namespaces5.php"
}, },
"containerName": "" "containerName": ""
}, },

View File

@ -10,7 +10,7 @@
"name": "A\\B", "name": "A\\B",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/namespaces6.php" "uri": "./namespaces6.php"
}, },
"containerName": "A" "containerName": "A"
}, },

View File

@ -1,7 +1,7 @@
{ {
"references": { "references": {
"LanguageServer": [ "LanguageServer": [
"./_cases/namespaces8.php" "./namespaces8.php"
] ]
}, },
"definitions": { "definitions": {
@ -14,7 +14,7 @@
"name": "LanguageServer\\Tests\\Utils", "name": "LanguageServer\\Tests\\Utils",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/namespaces8.php" "uri": "./namespaces8.php"
}, },
"containerName": "LanguageServer\\Tests" "containerName": "LanguageServer\\Tests"
}, },

View File

@ -1,7 +1,7 @@
{ {
"references": { "references": {
"MyNamespace\\A->inline_diff_renderer": [ "MyNamespace\\A->inline_diff_renderer": [
"./_cases/objectCreation.php" "./objectCreation.php"
] ]
}, },
"definitions": { "definitions": {
@ -14,7 +14,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/objectCreation.php" "uri": "./objectCreation.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -30,7 +30,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/objectCreation.php" "uri": "./objectCreation.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -46,7 +46,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/objectCreation.php" "uri": "./objectCreation.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"MyNamespace\\B->hi()": [ "MyNamespace\\B->hi()": [
"./_cases/objectCreation2.php" "./objectCreation2.php"
], ],
"MyNamespace\\B": [ "MyNamespace\\B": [
"./_cases/objectCreation2.php" "./objectCreation2.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/objectCreation2.php" "uri": "./objectCreation2.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "B", "name": "B",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/objectCreation2.php" "uri": "./objectCreation2.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -49,7 +49,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/objectCreation2.php" "uri": "./objectCreation2.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -65,7 +65,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/objectCreation2.php" "uri": "./objectCreation2.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,7 +1,7 @@
{ {
"references": { "references": {
"A->args": [ "A->args": [
"./_cases/objectCreation3.php" "./objectCreation3.php"
] ]
}, },
"definitions": { "definitions": {
@ -14,7 +14,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/objectCreation3.php" "uri": "./objectCreation3.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -30,7 +30,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/objectCreation3.php" "uri": "./objectCreation3.php"
}, },
"containerName": "A" "containerName": "A"
}, },

View File

@ -1,7 +1,7 @@
{ {
"references": { "references": {
"MyNamespace\\Hi": [ "MyNamespace\\Hi": [
"./_cases/param1.php" "./param1.php"
] ]
}, },
"definitions": { "definitions": {
@ -14,7 +14,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/param1.php" "uri": "./param1.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -30,7 +30,7 @@
"name": "init", "name": "init",
"kind": 12, "kind": 12,
"location": { "location": {
"uri": "./_cases/param1.php" "uri": "./param1.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"MyNamespace\\B": [ "MyNamespace\\B": [
"./_cases/parent1.php" "./parent1.php"
], ],
"parent": [ "parent": [
"./_cases/parent1.php" "./parent1.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/parent1.php" "uri": "./parent1.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "B", "name": "B",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/parent1.php" "uri": "./parent1.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -49,7 +49,7 @@
"name": "b", "name": "b",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/parent1.php" "uri": "./parent1.php"
}, },
"containerName": "MyNamespace\\B" "containerName": "MyNamespace\\B"
}, },
@ -68,7 +68,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/parent1.php" "uri": "./parent1.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -84,7 +84,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/parent1.php" "uri": "./parent1.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,13 +1,13 @@
{ {
"references": { "references": {
"MyNamespace\\B": [ "MyNamespace\\B": [
"./_cases/parent3.php" "./parent3.php"
], ],
"MyNamespace\\B->b()": [ "MyNamespace\\B->b()": [
"./_cases/parent3.php" "./parent3.php"
], ],
"parent": [ "parent": [
"./_cases/parent3.php" "./parent3.php"
] ]
}, },
"definitions": { "definitions": {
@ -20,7 +20,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/parent3.php" "uri": "./parent3.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -36,7 +36,7 @@
"name": "B", "name": "B",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/parent3.php" "uri": "./parent3.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -52,7 +52,7 @@
"name": "b", "name": "b",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/parent3.php" "uri": "./parent3.php"
}, },
"containerName": "MyNamespace\\B" "containerName": "MyNamespace\\B"
}, },
@ -71,7 +71,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/parent3.php" "uri": "./parent3.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -87,7 +87,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/parent3.php" "uri": "./parent3.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -10,7 +10,7 @@
"name": "MyClass", "name": "MyClass",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/propertyName1.php" "uri": "./propertyName1.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -26,7 +26,7 @@
"name": "mainPropertyName", "name": "mainPropertyName",
"kind": 7, "kind": 7,
"location": { "location": {
"uri": "./_cases/propertyName1.php" "uri": "./propertyName1.php"
}, },
"containerName": "MyClass" "containerName": "MyClass"
}, },

View File

@ -10,7 +10,7 @@
"name": "MyClass", "name": "MyClass",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/propertyName2.php" "uri": "./propertyName2.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -26,7 +26,7 @@
"name": "mainPropertyName", "name": "mainPropertyName",
"kind": 7, "kind": 7,
"location": { "location": {
"uri": "./_cases/propertyName2.php" "uri": "./propertyName2.php"
}, },
"containerName": "MyClass" "containerName": "MyClass"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"TestNamespace\\TestClass": [ "TestNamespace\\TestClass": [
"./_cases/returnType.php" "./returnType.php"
], ],
"TestNamespace\\TestClass2": [ "TestNamespace\\TestClass2": [
"./_cases/returnType.php" "./returnType.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "TestNamespace", "name": "TestNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/returnType.php" "uri": "./returnType.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "whatever", "name": "whatever",
"kind": 12, "kind": 12,
"location": { "location": {
"uri": "./_cases/returnType.php" "uri": "./returnType.php"
}, },
"containerName": "TestNamespace" "containerName": "TestNamespace"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"MyNamespace\\A::a()": [ "MyNamespace\\A::a()": [
"./_cases/scopedPropertyAccess.php" "./scopedPropertyAccess.php"
], ],
"MyNamespace\\A": [ "MyNamespace\\A": [
"./_cases/scopedPropertyAccess.php" "./scopedPropertyAccess.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/scopedPropertyAccess.php" "uri": "./scopedPropertyAccess.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/scopedPropertyAccess.php" "uri": "./scopedPropertyAccess.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -49,7 +49,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/scopedPropertyAccess.php" "uri": "./scopedPropertyAccess.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,7 +1,7 @@
{ {
"references": { "references": {
"MyNamespace\\A": [ "MyNamespace\\A": [
"./_cases/scopedPropertyAccess2.php" "./scopedPropertyAccess2.php"
] ]
}, },
"definitions": { "definitions": {
@ -14,7 +14,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/scopedPropertyAccess2.php" "uri": "./scopedPropertyAccess2.php"
}, },
"containerName": "" "containerName": ""
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"A": [ "A": [
"./_cases/scopedPropertyAccess3.php" "./scopedPropertyAccess3.php"
], ],
"A::$a": [ "A::$a": [
"./_cases/scopedPropertyAccess3.php" "./scopedPropertyAccess3.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/scopedPropertyAccess3.php" "uri": "./scopedPropertyAccess3.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "a", "name": "a",
"kind": 7, "kind": 7,
"location": { "location": {
"uri": "./_cases/scopedPropertyAccess3.php" "uri": "./scopedPropertyAccess3.php"
}, },
"containerName": "A" "containerName": "A"
}, },

View File

@ -1,7 +1,7 @@
{ {
"references": { "references": {
"A": [ "A": [
"./_cases/scopedPropertyAccess4.php" "./scopedPropertyAccess4.php"
] ]
}, },
"definitions": [] "definitions": []

View File

@ -1,16 +1,16 @@
{ {
"references": { "references": {
"TestInterface": [ "TestInterface": [
"./_cases/scopedPropertyAccess5.php" "./scopedPropertyAccess5.php"
], ],
"TestClass": [ "TestClass": [
"./_cases/scopedPropertyAccess5.php" "./scopedPropertyAccess5.php"
], ],
"TestClass::$testProperty": [ "TestClass::$testProperty": [
"./_cases/scopedPropertyAccess5.php" "./scopedPropertyAccess5.php"
], ],
"TestClass::$staticTestProperty": [ "TestClass::$staticTestProperty": [
"./_cases/scopedPropertyAccess5.php" "./scopedPropertyAccess5.php"
] ]
}, },
"definitions": { "definitions": {
@ -23,7 +23,7 @@
"name": "TestClass", "name": "TestClass",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/scopedPropertyAccess5.php" "uri": "./scopedPropertyAccess5.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -39,7 +39,7 @@
"name": "testProperty", "name": "testProperty",
"kind": 7, "kind": 7,
"location": { "location": {
"uri": "./_cases/scopedPropertyAccess5.php" "uri": "./scopedPropertyAccess5.php"
}, },
"containerName": "TestClass" "containerName": "TestClass"
}, },

View File

@ -1,13 +1,13 @@
{ {
"references": { "references": {
"MyNamespace\\B": [ "MyNamespace\\B": [
"./_cases/self1.php" "./self1.php"
], ],
"MyNamespace\\A::b()": [ "MyNamespace\\A::b()": [
"./_cases/self1.php" "./self1.php"
], ],
"self": [ "self": [
"./_cases/self1.php" "./self1.php"
] ]
}, },
"definitions": { "definitions": {
@ -20,7 +20,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/self1.php" "uri": "./self1.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -36,7 +36,7 @@
"name": "B", "name": "B",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/self1.php" "uri": "./self1.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -52,7 +52,7 @@
"name": "b", "name": "b",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/self1.php" "uri": "./self1.php"
}, },
"containerName": "MyNamespace\\B" "containerName": "MyNamespace\\B"
}, },
@ -71,7 +71,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/self1.php" "uri": "./self1.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -87,7 +87,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/self1.php" "uri": "./self1.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,13 +1,13 @@
{ {
"references": { "references": {
"MyNamespace\\B": [ "MyNamespace\\B": [
"./_cases/self2.php" "./self2.php"
], ],
"MyNamespace\\A::b()": [ "MyNamespace\\A::b()": [
"./_cases/self2.php" "./self2.php"
], ],
"self": [ "self": [
"./_cases/self2.php" "./self2.php"
] ]
}, },
"definitions": { "definitions": {
@ -20,7 +20,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/self2.php" "uri": "./self2.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -36,7 +36,7 @@
"name": "B", "name": "B",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/self2.php" "uri": "./self2.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -52,7 +52,7 @@
"name": "b", "name": "b",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/self2.php" "uri": "./self2.php"
}, },
"containerName": "MyNamespace\\B" "containerName": "MyNamespace\\B"
}, },
@ -71,7 +71,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/self2.php" "uri": "./self2.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -87,7 +87,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/self2.php" "uri": "./self2.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,13 +1,13 @@
{ {
"references": { "references": {
"MyNamespace\\B": [ "MyNamespace\\B": [
"./_cases/self3.php" "./self3.php"
], ],
"MyNamespace\\A->b()": [ "MyNamespace\\A->b()": [
"./_cases/self3.php" "./self3.php"
], ],
"self": [ "self": [
"./_cases/self3.php" "./self3.php"
] ]
}, },
"definitions": { "definitions": {
@ -20,7 +20,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/self3.php" "uri": "./self3.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -36,7 +36,7 @@
"name": "B", "name": "B",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/self3.php" "uri": "./self3.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -52,7 +52,7 @@
"name": "b", "name": "b",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/self3.php" "uri": "./self3.php"
}, },
"containerName": "MyNamespace\\B" "containerName": "MyNamespace\\B"
}, },
@ -71,7 +71,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/self3.php" "uri": "./self3.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -87,7 +87,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/self3.php" "uri": "./self3.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,16 +1,16 @@
{ {
"references": { "references": {
"self": [ "self": [
"./_cases/self4.php" "./self4.php"
], ],
"MyNamespace\\A->addTestFile()": [ "MyNamespace\\A->addTestFile()": [
"./_cases/self4.php" "./self4.php"
], ],
"MyNamespace\\DS": [ "MyNamespace\\DS": [
"./_cases/self4.php" "./self4.php"
], ],
"DS": [ "DS": [
"./_cases/self4.php" "./self4.php"
] ]
}, },
"definitions": { "definitions": {
@ -23,7 +23,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/self4.php" "uri": "./self4.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -39,7 +39,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/self4.php" "uri": "./self4.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -55,7 +55,7 @@
"name": "suite", "name": "suite",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/self4.php" "uri": "./self4.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,7 +1,7 @@
{ {
"references": { "references": {
"MyNamespace\\A->assertTrue()": [ "MyNamespace\\A->assertTrue()": [
"./_cases/self5.php" "./self5.php"
] ]
}, },
"definitions": { "definitions": {
@ -14,7 +14,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/self5.php" "uri": "./self5.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -30,7 +30,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/self5.php" "uri": "./self5.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -46,7 +46,7 @@
"name": "typesProvider", "name": "typesProvider",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/self5.php" "uri": "./self5.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,13 +1,13 @@
{ {
"references": { "references": {
"MyNamespace\\B": [ "MyNamespace\\B": [
"./_cases/static1.php" "./static1.php"
], ],
"MyNamespace\\A::b()": [ "MyNamespace\\A::b()": [
"./_cases/static1.php" "./static1.php"
], ],
"static": [ "static": [
"./_cases/static1.php" "./static1.php"
] ]
}, },
"definitions": { "definitions": {
@ -20,7 +20,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/static1.php" "uri": "./static1.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -36,7 +36,7 @@
"name": "B", "name": "B",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/static1.php" "uri": "./static1.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -52,7 +52,7 @@
"name": "b", "name": "b",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/static1.php" "uri": "./static1.php"
}, },
"containerName": "MyNamespace\\B" "containerName": "MyNamespace\\B"
}, },
@ -71,7 +71,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/static1.php" "uri": "./static1.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -87,7 +87,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/static1.php" "uri": "./static1.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,13 +1,13 @@
{ {
"references": { "references": {
"MyNamespace\\B": [ "MyNamespace\\B": [
"./_cases/static2.php" "./static2.php"
], ],
"MyNamespace\\A::b()": [ "MyNamespace\\A::b()": [
"./_cases/static2.php" "./static2.php"
], ],
"static": [ "static": [
"./_cases/static2.php" "./static2.php"
] ]
}, },
"definitions": { "definitions": {
@ -20,7 +20,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/static2.php" "uri": "./static2.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -36,7 +36,7 @@
"name": "B", "name": "B",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/static2.php" "uri": "./static2.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -52,7 +52,7 @@
"name": "b", "name": "b",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/static2.php" "uri": "./static2.php"
}, },
"containerName": "MyNamespace\\B" "containerName": "MyNamespace\\B"
}, },
@ -71,7 +71,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/static2.php" "uri": "./static2.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -87,7 +87,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/static2.php" "uri": "./static2.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,13 +1,13 @@
{ {
"references": { "references": {
"MyNamespace\\B": [ "MyNamespace\\B": [
"./_cases/static3.php" "./static3.php"
], ],
"MyNamespace\\b()": [ "MyNamespace\\b()": [
"./_cases/static3.php" "./static3.php"
], ],
"b()": [ "b()": [
"./_cases/static3.php" "./static3.php"
] ]
}, },
"definitions": { "definitions": {
@ -20,7 +20,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/static3.php" "uri": "./static3.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -36,7 +36,7 @@
"name": "B", "name": "B",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/static3.php" "uri": "./static3.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -52,7 +52,7 @@
"name": "b", "name": "b",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/static3.php" "uri": "./static3.php"
}, },
"containerName": "MyNamespace\\B" "containerName": "MyNamespace\\B"
}, },
@ -71,7 +71,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/static3.php" "uri": "./static3.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -87,7 +87,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/static3.php" "uri": "./static3.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"MyNamespace\\B": [ "MyNamespace\\B": [
"./_cases/static4.php" "./static4.php"
], ],
"static": [ "static": [
"./_cases/static4.php" "./static4.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace", "name": "MyNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/static4.php" "uri": "./static4.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -35,7 +35,7 @@
"name": "A", "name": "A",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/static4.php" "uri": "./static4.php"
}, },
"containerName": "MyNamespace" "containerName": "MyNamespace"
}, },
@ -51,7 +51,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/static4.php" "uri": "./static4.php"
}, },
"containerName": "MyNamespace\\A" "containerName": "MyNamespace\\A"
}, },

View File

@ -10,7 +10,7 @@
"name": "B", "name": "B",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/stringVariable.php" "uri": "./stringVariable.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -26,7 +26,7 @@
"name": "hi", "name": "hi",
"kind": 7, "kind": 7,
"location": { "location": {
"uri": "./_cases/stringVariable.php" "uri": "./stringVariable.php"
}, },
"containerName": "B" "containerName": "B"
}, },
@ -43,7 +43,7 @@
"name": "a", "name": "a",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/stringVariable.php" "uri": "./stringVariable.php"
}, },
"containerName": "B" "containerName": "B"
}, },

View File

@ -1,7 +1,7 @@
{ {
"references": { "references": {
"NameOutsideOfNamespace": [ "NameOutsideOfNamespace": [
"./_cases/testQualifiedNameOutsideOfNamespace.php" "./testQualifiedNameOutsideOfNamespace.php"
] ]
}, },
"definitions": { "definitions": {
@ -14,7 +14,7 @@
"name": "SomeNamespace", "name": "SomeNamespace",
"kind": 3, "kind": 3,
"location": { "location": {
"uri": "./_cases/testQualifiedNameOutsideOfNamespace.php" "uri": "./testQualifiedNameOutsideOfNamespace.php"
}, },
"containerName": "" "containerName": ""
}, },

View File

@ -1,10 +1,10 @@
{ {
"references": { "references": {
"CURLAUTH_BASIC": [ "CURLAUTH_BASIC": [
"./_cases/verifyFqsenOnClassProperty.php" "./verifyFqsenOnClassProperty.php"
], ],
"Foo->bar": [ "Foo->bar": [
"./_cases/verifyFqsenOnClassProperty.php" "./verifyFqsenOnClassProperty.php"
] ]
}, },
"definitions": { "definitions": {
@ -17,7 +17,7 @@
"name": "Foo", "name": "Foo",
"kind": 5, "kind": 5,
"location": { "location": {
"uri": "./_cases/verifyFqsenOnClassProperty.php" "uri": "./verifyFqsenOnClassProperty.php"
}, },
"containerName": "" "containerName": ""
}, },
@ -33,7 +33,7 @@
"name": "bar", "name": "bar",
"kind": 7, "kind": 7,
"location": { "location": {
"uri": "./_cases/verifyFqsenOnClassProperty.php" "uri": "./verifyFqsenOnClassProperty.php"
}, },
"containerName": "Foo" "containerName": "Foo"
}, },
@ -50,7 +50,7 @@
"name": "foo", "name": "foo",
"kind": 6, "kind": 6,
"location": { "location": {
"uri": "./_cases/verifyFqsenOnClassProperty.php" "uri": "./verifyFqsenOnClassProperty.php"
}, },
"containerName": "Foo" "containerName": "Foo"
}, },