Skip to content

Commit

Permalink
Merge pull request #65 from stof/remove_automatic_skipping
Browse files Browse the repository at this point in the history
Remove usage of onNotSuccessfulTest to mark tests as skipped
  • Loading branch information
stof authored Sep 26, 2023
2 parents 5f8d508 + 8f0c6d0 commit 307efdc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,6 @@ protected function resetSessions()
}
}

protected function onNotSuccessfulTest(\Throwable $e): void
{
if ($e instanceof UnsupportedDriverActionException) {
@trigger_error(sprintf('Relying on catching "UnsupportedDriverActionException" to mark tests as skipped is deprecated. The test "%s::%s" should be marked as skipped through the test config.', get_class($this), $this->getName(false)), E_USER_DEPRECATED);
$this->markTestSkipped($e->getMessage());
}

parent::onNotSuccessfulTest($e);
}

/**
* Returns session.
*
Expand Down

0 comments on commit 307efdc

Please sign in to comment.