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 0e4f0ce commit 8e6c10cCopy full SHA for 8e6c10c
PHPUnit/Framework/TestCase.php
@@ -751,7 +751,7 @@ public function runBare()
751
752
// Workaround for missing "finally".
753
if (isset($e)) {
754
- throw $e;
+ $this->onNotSuccessfulTest($e);
755
}
756
757
@@ -1445,6 +1445,17 @@ protected function tearDown()
1445
{
1446
1447
1448
+ /**
1449
+ * This method is called when a test method did not execute successfully.
1450
+ *
1451
+ * @param Exception $e
1452
+ * @since Method available since Release 3.4.0
1453
+ */
1454
+ protected function onNotSuccessfulTest(Exception $e)
1455
+ {
1456
+ throw $e;
1457
+ }
1458
+
1459
/**
1460
* Performs custom preparations on the process isolation template.
1461
*
0 commit comments