diff --git a/tests/Cache/CacheTest.php b/tests/Cache/CacheTest.php index 04f44eda644..f2d8443a711 100644 --- a/tests/Cache/CacheTest.php +++ b/tests/Cache/CacheTest.php @@ -219,6 +219,16 @@ public function foo($baz): void } } PHP, + '/src/B.php' => <<<'PHP' + foo(1); + } + } + PHP, ], 'issues' => [], ], @@ -244,6 +254,9 @@ public function foo($baz): void '/src/A.php' => [ "UndefinedDocblockClass: Docblock-defined class, interface or enum named T does not exist", ], + '/src/B.php' => [ + "InvalidArgument: Argument 1 of A::foo expects T, but 1 provided", + ], ], ], ],