Skip to content

Commit 1a1d7e4

Browse files
Cleanup
1 parent e4bead7 commit 1a1d7e4

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Framework/TestCase.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -632,17 +632,8 @@ public function expectExceptionMessageRegExp($messageRegExp)
632632
$this->expectedExceptionMessageRegExp = $messageRegExp;
633633
}
634634

635-
/**
636-
* @param $exception \Exception
637-
*
638-
* @throws Exception
639-
*/
640-
public function expectExceptionObject($exception)
635+
public function expectExceptionObject(Exception $exception)
641636
{
642-
if (!\is_a($exception, \Exception::class)) {
643-
throw InvalidArgumentHelper::factory(1, 'exception');
644-
}
645-
646637
$this->expectException(get_class($exception));
647638
$this->expectExceptionMessage($exception->getMessage());
648639
$this->expectExceptionCode($exception->getCode());

0 commit comments

Comments
 (0)