diff --git a/test/ComposerRequireCheckerTest/UsedSymbolsLocator/LocateUsedSymbolsFromASTRootsTest.php b/test/ComposerRequireCheckerTest/UsedSymbolsLocator/LocateUsedSymbolsFromASTRootsTest.php index a8a0ff11..7b96ae14 100644 --- a/test/ComposerRequireCheckerTest/UsedSymbolsLocator/LocateUsedSymbolsFromASTRootsTest.php +++ b/test/ComposerRequireCheckerTest/UsedSymbolsLocator/LocateUsedSymbolsFromASTRootsTest.php @@ -46,6 +46,7 @@ public function testInvokeReturnsSymbolsSorted(): void { $expectedSymbols = [ 'Doctrine\Common\Collections\ArrayCollection', + 'Example\Library\foo', 'FILTER_VALIDATE_URL', 'filter_var', 'Foo\Bar\Baz', diff --git a/test/fixtures/unknownSymbols/src/OtherThing.php b/test/fixtures/unknownSymbols/src/OtherThing.php index b74aa532..cdbbecb6 100644 --- a/test/fixtures/unknownSymbols/src/OtherThing.php +++ b/test/fixtures/unknownSymbols/src/OtherThing.php @@ -6,6 +6,9 @@ use Foo\Bar\Baz; +function foo() { +} + final class OtherThing { public function baz(Baz $baz) @@ -18,5 +21,7 @@ public function baz(Baz $baz) $baz->value(), FILTER_VALIDATE_URL ); + + foo(); } }