diff --git a/tests/Cache/CacheTest.php b/tests/Cache/CacheTest.php index c696aef96dd..2ed30516209 100644 --- a/tests/Cache/CacheTest.php +++ b/tests/Cache/CacheTest.php @@ -307,5 +307,51 @@ public function bar(): string ], ], ]; + yield 'deletedLines' => [ + [ + [ + 'files' => [ + 'src/A.php' => <<<'PHP' + [ + 'src/A.php' => [ + 'InvalidReturnStatement: The inferred type \'\'a\'\' does not match the declared return type \'int\' for A::foo', + 'InvalidReturnType: The declared return type \'int\' for A::foo is incorrect, got \'\'a\'\'', + ], + ], + ], + [ + 'files' => [ + 'src/A.php' => <<<'PHP' + [], + ], + ], + ]; } }