1
0
Fork 0

Rewrite .expected file on test failure and rename "broken" -> "_cases"

pull/357/head
Rob Lourens 2017-05-01 22:22:22 -07:00
parent ce548deb9d
commit dc673373df
137 changed files with 377 additions and 274 deletions

View File

@ -29,7 +29,7 @@ class ValidationTest extends TestCase
$testProviderArray = array();
foreach ($frameworks as $frameworkDir) {
$frameworkName = basename($frameworkDir);
if ($frameworkName !== "broken") {
if ($frameworkName !== '_cases') {
continue;
}
@ -63,12 +63,21 @@ class ValidationTest extends TestCase
$expectedValues = $this->getExpectedTestValues($testCaseFile, $frameworkName, $fileContents);
$actualValues = $this->getActualTestValues($testCaseFile, $frameworkName, $fileContents);
$this->assertEquals($expectedValues['definitions'], $actualValues['definitions']);
try {
$this->assertArraySubset((array)$expectedValues['references'], (array)$actualValues['references'], false, 'references don\'t match.');
$this->assertEquals($expectedValues['definitions'], $actualValues['definitions']);
try {
$this->assertArraySubset((array)$expectedValues['references'], (array)$actualValues['references'], false, 'references don\'t match.');
} catch (\Throwable $e) {
$this->assertEquals((array)$expectedValues['references'], (array)$actualValues['references'], 'references don\'t match.');
}
} catch (\Throwable $e) {
$this->assertEquals((array)$expectedValues['references'], (array)$actualValues['references'], 'references don\'t match.');
$outputFile = getExpectedValuesFile($testCaseFile);
if ($frameworkName === '_cases') {
file_put_contents($outputFile, json_encode($actualValues, JSON_PRETTY_PRINT));
}
throw $e;
}
}
@ -82,7 +91,7 @@ class ValidationTest extends TestCase
global $parserKind;
$parserKind = ParserKind::PHP_PARSER;
$outputFile = $filename . '.expected.json';
$outputFile = getExpectedValuesFile($filename);
if (file_exists($outputFile)) {
return (array)json_decode(file_get_contents($outputFile));
}
@ -136,11 +145,6 @@ class ValidationTest extends TestCase
'definitions' => json_decode(json_encode($actualDefs))
);
$outputFile = $filename . '.expected.json';
if ($frameworkName === 'broken') {
file_put_contents($outputFile, json_encode($refsAndDefs, JSON_PRETTY_PRINT));
}
return $refsAndDefs;
}
@ -194,4 +198,8 @@ class ValidationTest extends TestCase
}
}
}
}
function getExpectedValuesFile($testCaseFile): string {
return $testCaseFile . '.expected.json';
}

View File

@ -1,13 +1,13 @@
{
"references": {
"Fixtures\\Prophecy\\EmptyClass": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/WithReturnTypehints.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/WithReturnTypehints.php"
],
"self": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/WithReturnTypehints.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/WithReturnTypehints.php"
],
"parent": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/WithReturnTypehints.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/WithReturnTypehints.php"
]
},
"definitions": {
@ -20,7 +20,7 @@
"name": "Fixtures\\Prophecy",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/WithReturnTypehints.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/WithReturnTypehints.php"
},
"containerName": "Fixtures"
},
@ -39,7 +39,7 @@
"name": "WithReturnTypehints",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/WithReturnTypehints.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/WithReturnTypehints.php"
},
"containerName": "Fixtures\\Prophecy"
},
@ -56,7 +56,7 @@
"name": "getSelf",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/WithReturnTypehints.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/WithReturnTypehints.php"
},
"containerName": "Fixtures\\Prophecy\\WithReturnTypehints"
},
@ -73,7 +73,7 @@
"name": "getName",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/WithReturnTypehints.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/WithReturnTypehints.php"
},
"containerName": "Fixtures\\Prophecy\\WithReturnTypehints"
},
@ -90,7 +90,7 @@
"name": "getParent",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/WithReturnTypehints.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/WithReturnTypehints.php"
},
"containerName": "Fixtures\\Prophecy\\WithReturnTypehints"
},

View File

@ -10,7 +10,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/anonymousClassMembersShouldNotBeSymbols.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/anonymousClassMembersShouldNotBeSymbols.php"
},
"containerName": ""
},

View File

@ -10,7 +10,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/arrayValueShouldBeBoolean.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/arrayValueShouldBeBoolean.php"
},
"containerName": ""
},
@ -27,7 +27,7 @@
"name": "foo",
"kind": 7,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/arrayValueShouldBeBoolean.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/arrayValueShouldBeBoolean.php"
},
"containerName": "A"
},

View File

@ -1,10 +1,10 @@
{
"references": {
"MyNamespace\\A": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/caseStatement1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/caseStatement1.php"
],
"A": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/caseStatement1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/caseStatement1.php"
]
},
"definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/caseStatement1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/caseStatement1.php"
},
"containerName": ""
},

View File

@ -1,10 +1,10 @@
{
"references": {
"TestNamespace\\A": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/classDefinition1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/classDefinition1.php"
],
"TestNamespace\\A->a": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/classDefinition1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/classDefinition1.php"
]
},
"definitions": {
@ -17,7 +17,7 @@
"name": "TestNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/classDefinition1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/classDefinition1.php"
},
"containerName": ""
},
@ -34,7 +34,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/classDefinition1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/classDefinition1.php"
},
"containerName": "TestNamespace"
},
@ -51,7 +51,7 @@
"name": "a",
"kind": 7,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/classDefinition1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/classDefinition1.php"
},
"containerName": "TestNamespace\\A"
},

View File

@ -1,10 +1,10 @@
{
"references": {
"SomeNamespace\\Goo": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/classProperty1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/classProperty1.php"
],
"SomeNamespace": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/classProperty1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/classProperty1.php"
]
},
"definitions": {
@ -17,7 +17,7 @@
"name": "TestNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/classProperty1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/classProperty1.php"
},
"containerName": ""
},
@ -34,7 +34,7 @@
"name": "TestClass",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/classProperty1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/classProperty1.php"
},
"containerName": "TestNamespace"
},
@ -51,7 +51,7 @@
"name": "testProperty",
"kind": 7,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/classProperty1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/classProperty1.php"
},
"containerName": "TestNamespace\\TestClass"
},
@ -68,7 +68,7 @@
"name": "testMethod",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/classProperty1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/classProperty1.php"
},
"containerName": "TestNamespace\\TestClass"
},

View File

@ -1,10 +1,10 @@
{
"references": {
"MyNamespace\\BYE": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants.php"
],
"BYE": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants.php"
]
},
"definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants.php"
},
"containerName": ""
},
@ -34,7 +34,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants.php"
},
"containerName": "MyNamespace"
},
@ -51,7 +51,7 @@
"name": "suite",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants.php"
},
"containerName": "MyNamespace\\A"
},

View File

@ -1,10 +1,10 @@
{
"references": {
"MyNamespace\\BYE": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants2.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants2.php"
],
"BYE": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants2.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants2.php"
]
},
"definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants2.php"
},
"containerName": ""
},
@ -34,7 +34,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants2.php"
},
"containerName": "MyNamespace"
},
@ -51,7 +51,7 @@
"name": "suite",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants2.php"
},
"containerName": "MyNamespace\\A"
},

View File

@ -1,10 +1,10 @@
{
"references": {
"MyNamespace\\T_NEW": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants3.php"
],
"T_NEW": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants3.php"
]
},
"definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants3.php"
},
"containerName": ""
},
@ -34,7 +34,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants3.php"
},
"containerName": "MyNamespace"
},
@ -51,7 +51,7 @@
"name": "suite",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants3.php"
},
"containerName": "MyNamespace\\A"
},

View File

@ -1,10 +1,10 @@
{
"references": {
"MyNamespace\\HI": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants4.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants4.php"
],
"HI": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants4.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants4.php"
]
},
"definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants4.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants4.php"
},
"containerName": ""
},
@ -34,7 +34,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants4.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants4.php"
},
"containerName": "MyNamespace"
},
@ -51,7 +51,7 @@
"name": "suite",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants4.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants4.php"
},
"containerName": "MyNamespace\\A"
},

View File

@ -1,7 +1,7 @@
{
"references": {
"MyNamespace\\PHP_INT_MAX": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants5.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants5.php"
]
},
"definitions": {
@ -14,7 +14,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants5.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants5.php"
},
"containerName": ""
},
@ -31,7 +31,7 @@
"name": "Mbstring",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants5.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants5.php"
},
"containerName": "MyNamespace"
},
@ -48,7 +48,7 @@
"name": "MB_CASE_FOLD",
"kind": 14,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constants5.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constants5.php"
},
"containerName": "MyNamespace\\Mbstring"
},

View File

@ -1,7 +1,7 @@
{
"references": {
"MY_CONSTANT": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constantsInFunctionParamDefault.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constantsInFunctionParamDefault.php"
]
},
"definitions": {
@ -14,7 +14,7 @@
"name": "A",
"kind": 11,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constantsInFunctionParamDefault.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constantsInFunctionParamDefault.php"
},
"containerName": ""
},
@ -31,7 +31,7 @@
"name": "b",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/constantsInFunctionParamDefault.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/constantsInFunctionParamDefault.php"
},
"containerName": "A"
},

View File

@ -10,7 +10,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/docBlocksOnNamespaceDefinition.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/docBlocksOnNamespaceDefinition.php"
},
"containerName": ""
},

View File

@ -10,7 +10,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/exceptions1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/exceptions1.php"
},
"containerName": ""
},

View File

@ -1,10 +1,10 @@
{
"references": {
"A": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/functionUse.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/functionUse.php"
],
"A->b()": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/functionUse.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/functionUse.php"
]
},
"definitions": []

View File

@ -1,10 +1,10 @@
{
"references": {
"LanguageServer": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/functionUse2.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/functionUse2.php"
],
"LanguageServer\\timeout()": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/functionUse2.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/functionUse2.php"
]
},
"definitions": []

View File

@ -1,10 +1,10 @@
{
"references": {
"MyNamespace\\A": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/ifStatement1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/ifStatement1.php"
],
"A": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/ifStatement1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/ifStatement1.php"
]
},
"definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/ifStatement1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/ifStatement1.php"
},
"containerName": ""
},

View File

@ -0,0 +1,5 @@
<?php
interface A {
// props ignored in interface
var $a = 3;
}

View File

@ -0,0 +1,22 @@
{
"references": [],
"definitions": {
"A": {
"extends": [],
"isGlobal": true,
"isStatic": false,
"canBeInstantiated": false,
"symbolInformation": {
"name": "A",
"kind": 11,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/interfaceProperty.php"
},
"containerName": ""
},
"type__class": "LanguageServer\\Tests\\ValidationTest",
"type": null,
"documentation": null
}
}
}

View File

@ -10,7 +10,7 @@
"name": "B",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/magicConstantsShouldBeGlobal.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/magicConstantsShouldBeGlobal.php"
},
"containerName": ""
},

View File

@ -10,7 +10,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/magicConsts.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/magicConsts.php"
},
"containerName": ""
},
@ -27,7 +27,7 @@
"name": "deprecationsTriggered",
"kind": 7,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/magicConsts.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/magicConsts.php"
},
"containerName": "A"
},

View File

@ -1,10 +1,10 @@
{
"references": {
"MyNamespace\\a": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess1.php"
],
"MyNamespace\\a->a()": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess1.php"
]
},
"definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess1.php"
},
"containerName": ""
},
@ -34,7 +34,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess1.php"
},
"containerName": "MyNamespace"
},
@ -51,7 +51,7 @@
"name": "a",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess1.php"
},
"containerName": "MyNamespace\\A"
},

View File

@ -1,10 +1,10 @@
{
"references": {
"MyNamespace\\a": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess2.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess2.php"
],
"MyNamespace\\a->a()": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess2.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess2.php"
]
},
"definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess2.php"
},
"containerName": ""
},
@ -34,7 +34,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess2.php"
},
"containerName": "MyNamespace"
},
@ -51,7 +51,7 @@
"name": "a",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess2.php"
},
"containerName": "MyNamespace\\A"
},

View File

@ -1,25 +1,25 @@
{
"references": {
"MyNamespace\\ClassLoader": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess3.php"
],
"Closure::bind()": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess3.php"
],
"Closure": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess3.php"
],
"MyNamespace\\ClassLoader->prefixesPsr0": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess3.php"
],
"MyNamespace\\ComposerStaticInitIncludePath": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess3.php"
],
"MyNamespace\\ComposerStaticInitIncludePath::$prefixesPsr0": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess3.php"
],
"MyNamespace\\ClassLoader::class": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess3.php"
]
},
"definitions": {
@ -32,7 +32,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess3.php"
},
"containerName": ""
},
@ -49,7 +49,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess3.php"
},
"containerName": "MyNamespace"
},
@ -66,7 +66,7 @@
"name": "getInitializer",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess3.php"
},
"containerName": "MyNamespace\\A"
},

View File

@ -1,16 +1,16 @@
{
"references": {
"MyNamespace\\Request::create()": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess4.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess4.php"
],
"MyNamespace\\Request": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess4.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess4.php"
],
"MyNamespace\\Url->toString()": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess4.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess4.php"
],
"MyNamespace\\Url": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess4.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess4.php"
]
},
"definitions": {
@ -23,7 +23,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess4.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess4.php"
},
"containerName": ""
},
@ -40,7 +40,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess4.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess4.php"
},
"containerName": "MyNamespace"
},
@ -57,7 +57,7 @@
"name": "testRequest",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess4.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess4.php"
},
"containerName": "MyNamespace\\A"
},

View File

@ -10,7 +10,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess5.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess5.php"
},
"containerName": ""
},
@ -27,7 +27,7 @@
"name": "ParseErrorsTest",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess5.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess5.php"
},
"containerName": "MyNamespace"
},
@ -44,7 +44,7 @@
"name": "setUp",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberAccess5.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberAccess5.php"
},
"containerName": "MyNamespace\\ParseErrorsTest"
},

View File

@ -1,13 +1,13 @@
{
"references": {
"MyNamespace\\AccountInterface": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberCall1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberCall1.php"
],
"MyNamespace\\A": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberCall1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberCall1.php"
],
"MyNamespace\\AccountInterface->getAccount()": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberCall1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberCall1.php"
]
},
"definitions": {
@ -20,7 +20,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberCall1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberCall1.php"
},
"containerName": ""
},
@ -37,7 +37,7 @@
"name": "ParseErrorsTest",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberCall1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberCall1.php"
},
"containerName": "MyNamespace"
},
@ -54,7 +54,7 @@
"name": "setAccount",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/memberCall1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/memberCall1.php"
},
"containerName": "MyNamespace\\ParseErrorsTest"
},

View File

@ -1,16 +1,16 @@
{
"references": {
"MyNamespace2\\MyNamespace1\\B": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/multipleNamespaces.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/multipleNamespaces.php"
],
"MyNamespace2\\MyNamespace1": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/multipleNamespaces.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/multipleNamespaces.php"
],
"MyNamespace2": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/multipleNamespaces.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/multipleNamespaces.php"
],
"MyNamespace2\\A->b()": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/multipleNamespaces.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/multipleNamespaces.php"
]
},
"definitions": {
@ -23,7 +23,7 @@
"name": "MyNamespace1",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/multipleNamespaces.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/multipleNamespaces.php"
},
"containerName": ""
},
@ -40,7 +40,7 @@
"name": "B",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/multipleNamespaces.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/multipleNamespaces.php"
},
"containerName": "MyNamespace1"
},
@ -57,7 +57,7 @@
"name": "b",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/multipleNamespaces.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/multipleNamespaces.php"
},
"containerName": "MyNamespace1\\B"
},
@ -74,7 +74,7 @@
"name": "MyNamespace2",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/multipleNamespaces.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/multipleNamespaces.php"
},
"containerName": ""
},
@ -93,7 +93,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/multipleNamespaces.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/multipleNamespaces.php"
},
"containerName": "MyNamespace2"
},
@ -110,7 +110,7 @@
"name": "a",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/multipleNamespaces.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/multipleNamespaces.php"
},
"containerName": "MyNamespace2\\A"
},

View File

@ -10,7 +10,7 @@
"name": "Foo",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/multiplePreceedingComments.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/multiplePreceedingComments.php"
},
"containerName": ""
},
@ -27,7 +27,7 @@
"name": "fn",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/multiplePreceedingComments.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/multiplePreceedingComments.php"
},
"containerName": "Foo"
},

View File

@ -10,7 +10,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/nameToken.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/nameToken.php"
},
"containerName": ""
},
@ -27,7 +27,7 @@
"name": "b",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/nameToken.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/nameToken.php"
},
"containerName": "A"
},

View File

@ -1,16 +1,16 @@
{
"references": {
"NS1\\C": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces2.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces2.php"
],
"NS1": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces2.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces2.php"
],
"NS1\\I": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces2.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces2.php"
],
"NS1\\T": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces2.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces2.php"
]
},
"definitions": {
@ -23,7 +23,7 @@
"name": "MyNamespace1",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces2.php"
},
"containerName": ""
},

View File

@ -1,10 +1,10 @@
{
"references": {
"a\\b": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces4.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces4.php"
],
"a": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces4.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces4.php"
]
},
"definitions": []

View File

@ -1,25 +1,25 @@
{
"references": {
"LanguageServer\\Protocol": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces5.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces5.php"
],
"LanguageServer": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces5.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces5.php"
],
"LanguageServer\\Protocol\\TextDocumentIdentifier": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces5.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces5.php"
],
"LanguageServer\\Protocol\\Position": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces5.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces5.php"
],
"LanguageServer\\Protocol\\ReferenceContext": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces5.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces5.php"
],
"LanguageServer\\Protocol\\Location": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces5.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces5.php"
],
"LanguageServer\\Protocol\\Range": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces5.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces5.php"
]
},
"definitions": {
@ -32,7 +32,7 @@
"name": "B",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces5.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces5.php"
},
"containerName": ""
},

View File

@ -10,7 +10,7 @@
"name": "A\\B",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces6.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces6.php"
},
"containerName": "A"
},

View File

@ -1,7 +1,7 @@
{
"references": {
"LanguageServer": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces8.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces8.php"
]
},
"definitions": {
@ -14,7 +14,7 @@
"name": "LanguageServer\\Tests\\Utils",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/namespaces8.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/namespaces8.php"
},
"containerName": "LanguageServer\\Tests"
},

View File

@ -0,0 +1,12 @@
<?php
class NewStatic {
public static function main()
{
$command = new static;
return $command->foo();
}
private function foo() {
}
}

View File

@ -0,0 +1,56 @@
{
"references": [],
"definitions": {
"NewStatic": {
"extends": [],
"isGlobal": true,
"isStatic": false,
"canBeInstantiated": true,
"symbolInformation": {
"name": "NewStatic",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/newStatic.php"
},
"containerName": ""
},
"type__class": "LanguageServer\\Tests\\ValidationTest",
"type": null,
"documentation": null
},
"NewStatic::main()": {
"extends": [],
"isGlobal": false,
"isStatic": true,
"canBeInstantiated": false,
"symbolInformation": {
"name": "main",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/newStatic.php"
},
"containerName": "NewStatic"
},
"type__class": "phpDocumentor\\Reflection\\Types\\Mixed",
"type": {},
"documentation": null
},
"NewStatic->foo()": {
"extends": [],
"isGlobal": false,
"isStatic": false,
"canBeInstantiated": false,
"symbolInformation": {
"name": "foo",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/newStatic.php"
},
"containerName": "NewStatic"
},
"type__class": "phpDocumentor\\Reflection\\Types\\Mixed",
"type": {},
"documentation": null
}
}
}

View File

@ -1,7 +1,7 @@
{
"references": {
"MyNamespace\\A->inline_diff_renderer": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation.php"
]
},
"definitions": {
@ -14,7 +14,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation.php"
},
"containerName": ""
},
@ -31,7 +31,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation.php"
},
"containerName": "MyNamespace"
},
@ -48,7 +48,7 @@
"name": "a",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation.php"
},
"containerName": "MyNamespace\\A"
},

View File

@ -1,10 +1,10 @@
{
"references": {
"MyNamespace\\B->hi()": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation2.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation2.php"
],
"MyNamespace\\B": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation2.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation2.php"
]
},
"definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation2.php"
},
"containerName": ""
},
@ -34,7 +34,7 @@
"name": "B",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation2.php"
},
"containerName": "MyNamespace"
},
@ -51,7 +51,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation2.php"
},
"containerName": "MyNamespace"
},
@ -68,7 +68,7 @@
"name": "a",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation2.php"
},
"containerName": "MyNamespace\\A"
},

View File

@ -1,7 +1,7 @@
{
"references": {
"A->args": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation3.php"
]
},
"definitions": {
@ -14,7 +14,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation3.php"
},
"containerName": ""
},
@ -31,7 +31,7 @@
"name": "a",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/objectCreation3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/objectCreation3.php"
},
"containerName": "A"
},

View File

@ -1,7 +1,7 @@
{
"references": {
"MyNamespace\\Hi": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/param1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/param1.php"
]
},
"definitions": {
@ -14,7 +14,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/param1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/param1.php"
},
"containerName": ""
},
@ -31,7 +31,7 @@
"name": "init",
"kind": 12,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/param1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/param1.php"
},
"containerName": "MyNamespace"
},

View File

@ -1,10 +1,10 @@
{
"references": {
"MyNamespace\\B": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent1.php"
],
"parent": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent1.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent1.php"
]
},
"definitions": {
@ -17,7 +17,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent1.php"
},
"containerName": ""
},
@ -34,7 +34,7 @@
"name": "B",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent1.php"
},
"containerName": "MyNamespace"
},
@ -51,7 +51,7 @@
"name": "b",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent1.php"
},
"containerName": "MyNamespace\\B"
},
@ -70,7 +70,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent1.php"
},
"containerName": "MyNamespace"
},
@ -87,7 +87,7 @@
"name": "a",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent1.php"
},
"containerName": "MyNamespace\\A"
},

View File

@ -1,13 +1,13 @@
{
"references": {
"MyNamespace\\B": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent3.php"
],
"MyNamespace\\B->b()": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent3.php"
],
"parent": [
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent3.php"
"\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent3.php"
]
},
"definitions": {
@ -20,7 +20,7 @@
"name": "MyNamespace",
"kind": 3,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent3.php"
},
"containerName": ""
},
@ -37,7 +37,7 @@
"name": "B",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent3.php"
},
"containerName": "MyNamespace"
},
@ -54,7 +54,7 @@
"name": "b",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent3.php"
},
"containerName": "MyNamespace\\B"
},
@ -73,7 +73,7 @@
"name": "A",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent3.php"
},
"containerName": "MyNamespace"
},
@ -90,7 +90,7 @@
"name": "a",
"kind": 6,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/parent3.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/parent3.php"
},
"containerName": "MyNamespace\\A"
},

View File

@ -10,7 +10,7 @@
"name": "MyClass",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/propertyName1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/propertyName1.php"
},
"containerName": ""
},
@ -27,7 +27,7 @@
"name": "mainPropertyName",
"kind": 7,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/propertyName1.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/propertyName1.php"
},
"containerName": "MyClass"
},

View File

@ -10,7 +10,7 @@
"name": "MyClass",
"kind": 5,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/propertyName2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/propertyName2.php"
},
"containerName": ""
},
@ -27,7 +27,7 @@
"name": "mainPropertyName",
"kind": 7,
"location": {
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/broken\/propertyName2.php"
"uri": "\/Users\/roblou\/code\/php-language-server\/tests\/Validation\/..\/..\/validation\/frameworks\/_cases\/propertyName2.php"
},
"containerName": "MyClass"
},

Some files were not shown because too many files have changed in this diff Show More