This repository was archived by the owner on Mar 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/LanguageServerReferenceFinder/Unit/Handler Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ class ReferencesHandlerTest extends TestCase
3131 const EXAMPLE_TEXT = 'hello ' ;
3232
3333 /**
34- * @var ObjectProphecy| ReferenceFinder
34+ * @var ObjectProphecy< ReferenceFinder>
3535 */
3636 private $ finder ;
3737
3838 /**
39- * @var ObjectProphecy
39+ * @var ObjectProphecy<DefinitionLocator>
4040 */
4141 private $ locator ;
4242
@@ -116,7 +116,7 @@ public function testFindsReferencesIncludingDeclaration(): void
116116 ByteOffset::fromInt (0 )
117117 )->willReturn (new DefinitionLocation ($ document ->uri (), ByteOffset::fromInt (2 )))->shouldBeCalled ();
118118
119- $ response = $ this ->createTester (true )->requestAndWait (ReferencesRequest::METHOD , [
119+ $ response = $ this ->createTester ()->requestAndWait (ReferencesRequest::METHOD , [
120120 'textDocument ' => ProtocolFactory::textDocumentIdentifier (self ::EXAMPLE_URI ),
121121 'position ' => ProtocolFactory::position (0 , 0 ),
122122 'context ' => new ReferenceContext (true ),
@@ -128,7 +128,7 @@ public function testFindsReferencesIncludingDeclaration(): void
128128 $ this ->assertInstanceOf (LspLocation::class, $ lspLocation );
129129 }
130130
131- public function testFindsReferencesIncludingDeclarationWhenDeclarationNotFound ()
131+ public function testFindsReferencesIncludingDeclarationWhenDeclarationNotFound (): void
132132 {
133133 $ document = TextDocumentBuilder::create (self ::EXAMPLE_TEXT )
134134 ->language ('php ' )
You can’t perform that action at this time.
0 commit comments