Skip to content

Commit 97068bd

Browse files
Fix
1 parent bec0e3b commit 97068bd

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

tests/PHPStan/Rules/Exceptions/AbilityToDisableImplicitThrowsTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ public function testBug13806(): void
8787
]);
8888
}
8989

90+
public function testBug7799(): void
91+
{
92+
$this->analyse([__DIR__ . '/data/bug-7799.php'], [
93+
[
94+
'Dead catch - Exception is never thrown in the try block.',
95+
19,
96+
],
97+
]);
98+
}
99+
90100
public static function getAdditionalConfigFiles(): array
91101
{
92102
return array_merge(

tests/PHPStan/Rules/Exceptions/CatchWithUnthrownExceptionRuleTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -816,14 +816,4 @@ public function testBug6574(): void
816816
]);
817817
}
818818

819-
public function testBug7799(): void
820-
{
821-
$this->analyse([__DIR__ . '/data/bug-7799.php'], [
822-
[
823-
'Dead catch - Exception is never thrown in the try block.',
824-
19,
825-
],
826-
]);
827-
}
828-
829819
}

0 commit comments

Comments
 (0)