Skip to content

Commit

Permalink
chore: add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ging-dev committed Oct 17, 2023
1 parent b432d81 commit 8ee8750
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Cache/CacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,16 @@ public function foo($baz): void
}
}
PHP,
'/src/B.php' => <<<'PHP'
<?php
class B {
public function foo(): void
{
(new A)->foo(1);
}
}
PHP,
],
'issues' => [],
],
Expand All @@ -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",
],
],
],
],
Expand Down

0 comments on commit 8ee8750

Please sign in to comment.