Skip to content

Commit 225c44d

Browse files
dshafiksebastianbergmann
authored andcommitted
Allow skipping of testcases that have have @ExpectedException annotation
1 parent dc7d9ab commit 225c44d

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
@@ -916,7 +916,7 @@ protected function runTest()
916916
if (isset($e)) {
917917
$checkException = false;
918918

919-
if (is_string($this->expectedException)) {
919+
if (!($e instanceof PHPUnit_Framework_SkippedTestError) && is_string($this->expectedException)) {
920920
$checkException = true;
921921

922922
if ($e instanceof PHPUnit_Framework_Exception) {

0 commit comments

Comments
 (0)