diff --git a/tests/Server/ServerTestCase.php b/tests/Server/ServerTestCase.php index 6728a9f..0886655 100644 --- a/tests/Server/ServerTestCase.php +++ b/tests/Server/ServerTestCase.php @@ -59,6 +59,7 @@ abstract class ServerTestCase extends TestCase $this->project->loadDocument($globalReferencesUri); $this->project->loadDocument($useUri); + // @codingStandardsIgnoreStart $this->definitionLocations = [ // Global @@ -166,6 +167,7 @@ abstract class ServerTestCase extends TestCase 0 => new Location($globalReferencesUri, new Range(new Position(10, 0), new Position(10, 13))) ] ]; + // @codingStandardsIgnoreEnd } protected function getDefinitionLocation(string $fqn): Location diff --git a/tests/Server/TextDocument/DocumentSymbolTest.php b/tests/Server/TextDocument/DocumentSymbolTest.php index 803dcae..7b304d0 100644 --- a/tests/Server/TextDocument/DocumentSymbolTest.php +++ b/tests/Server/TextDocument/DocumentSymbolTest.php @@ -16,6 +16,7 @@ class DocumentSymbolTest extends ServerTestCase // Request symbols $uri = pathToUri(realpath(__DIR__ . '/../../../fixtures/symbols.php')); $result = $this->textDocument->documentSymbol(new TextDocumentIdentifier($uri)); + // @codingStandardsIgnoreStart $this->assertEquals([ new SymbolInformation('TEST_CONST', SymbolKind::CONSTANT, $this->getDefinitionLocation('TestNamespace\\TEST_CONST'), 'TestNamespace'), new SymbolInformation('TestClass', SymbolKind::CLASS_, $this->getDefinitionLocation('TestNamespace\\TestClass'), 'TestNamespace'), @@ -28,5 +29,6 @@ class DocumentSymbolTest extends ServerTestCase new SymbolInformation('TestInterface', SymbolKind::INTERFACE, $this->getDefinitionLocation('TestNamespace\\TestInterface'), 'TestNamespace'), new SymbolInformation('test_function', SymbolKind::FUNCTION, $this->getDefinitionLocation('TestNamespace\\test_function()'), 'TestNamespace'), ], $result); + // @codingStandardsIgnoreEnd } } diff --git a/tests/Server/Workspace/SymbolTest.php b/tests/Server/Workspace/SymbolTest.php index b029e77..7086942 100644 --- a/tests/Server/Workspace/SymbolTest.php +++ b/tests/Server/Workspace/SymbolTest.php @@ -16,6 +16,7 @@ class SymbolTest extends ServerTestCase { // Request symbols $result = $this->workspace->symbol(''); + // @codingStandardsIgnoreStart $this->assertEquals([ // Namespaced new SymbolInformation('TEST_CONST', SymbolKind::CONSTANT, $this->getDefinitionLocation('TestNamespace\\TEST_CONST'), 'TestNamespace'), @@ -42,17 +43,20 @@ class SymbolTest extends ServerTestCase new SymbolInformation('test_function', SymbolKind::FUNCTION, $this->getDefinitionLocation('test_function()'), ''), new SymbolInformation('whatever', SymbolKind::FUNCTION, $this->getDefinitionLocation('whatever()'), '') ], $result); + // @codingStandardsIgnoreEnd } public function testQueryFiltersResults() { // Request symbols $result = $this->workspace->symbol('testmethod'); + // @codingStandardsIgnoreStart $this->assertEquals([ new SymbolInformation('staticTestMethod', SymbolKind::METHOD, $this->getDefinitionLocation('TestNamespace\\TestClass::staticTestMethod()'), 'TestNamespace\\TestClass'), new SymbolInformation('testMethod', SymbolKind::METHOD, $this->getDefinitionLocation('TestNamespace\\TestClass::testMethod()'), 'TestNamespace\\TestClass'), new SymbolInformation('staticTestMethod', SymbolKind::METHOD, $this->getDefinitionLocation('TestClass::staticTestMethod()'), 'TestClass'), new SymbolInformation('testMethod', SymbolKind::METHOD, $this->getDefinitionLocation('TestClass::testMethod()'), 'TestClass') ], $result); + // @codingStandardsIgnoreEnd } }