Skip to content

Commit

Permalink
Test even non-global case
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Dec 30, 2024
1 parent ff364ed commit 4db04d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tests/UsedSymbolExtractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ public function provideVariants(): iterable
'PHPUnit\Framework\Error' => [14],
'LogicException' => [15, 20],
],
SymbolKind::FUNCTION => [
'user_defined_function' => [38],
],
],
[
'user_defined_function' => SymbolKind::FUNCTION,
],
];

Expand Down
2 changes: 1 addition & 1 deletion tests/data/not-autoloaded/used-symbols/various-usages.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Foo {

public function foo(Error $error): void // not PHPUnit\Framework\Error anymore
{

user_defined_function();
}

}

0 comments on commit 4db04d3

Please sign in to comment.