Skip to content

Commit f903351

Browse files
authored
Merge pull request #69 from stof/deprecate_skipped_unsupported
Deprecate marking tests as skipped for unsupported actions
2 parents 502f98e + a7b1169 commit f903351

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/TestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ protected function resetSessions()
7474
protected function onNotSuccessfulTest(\Throwable $e): void
7575
{
7676
if ($e instanceof UnsupportedDriverActionException) {
77+
@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);
7778
$this->markTestSkipped($e->getMessage());
7879
}
7980

0 commit comments

Comments
 (0)