Skip to content

Commit 08f8057

Browse files
Allow Throwable in expectExceptionObject
1 parent e05f65e commit 08f8057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Framework/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ final protected function expectExceptionMessageMatches(string $regularExpression
10831083
* Information for expected exception class, expected exception message, and
10841084
* expected exception code are retrieved from a given Exception object.
10851085
*/
1086-
final protected function expectExceptionObject(\Exception $exception): void
1086+
final protected function expectExceptionObject(\Throwable $exception): void
10871087
{
10881088
$this->expectException($exception::class);
10891089
$this->expectExceptionMessage($exception->getMessage());

0 commit comments

Comments
 (0)