Skip to content

Commit 7c6ce93

Browse files
committed
TestCase - fix handling PHPUnit_Framework_Exception expectedException
1 parent d548f90 commit 7c6ce93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Framework/TestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,8 @@ protected function runTest()
925925

926926
$reflector = new ReflectionClass($this->expectedException);
927927

928-
if ($this->expectedException == 'PHPUnit_Framework_Exception' ||
928+
if ($this->expectedException === 'PHPUnit_Framework_Exception' ||
929+
$this->expectedException === '\PHPUnit_Framework_Exception' ||
929930
$reflector->isSubclassOf('PHPUnit_Framework_Exception')) {
930931
$checkException = true;
931932
}

0 commit comments

Comments
 (0)