We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d548f90 commit 7c6ce93Copy full SHA for 7c6ce93
src/Framework/TestCase.php
@@ -925,7 +925,8 @@ protected function runTest()
925
926
$reflector = new ReflectionClass($this->expectedException);
927
928
- if ($this->expectedException == 'PHPUnit_Framework_Exception' ||
+ if ($this->expectedException === 'PHPUnit_Framework_Exception' ||
929
+ $this->expectedException === '\PHPUnit_Framework_Exception' ||
930
$reflector->isSubclassOf('PHPUnit_Framework_Exception')) {
931
$checkException = true;
932
}
0 commit comments