removes expection expectations if test is marked as skipped

This commit is contained in:
Fabio Ivona
2021-10-01 15:52:45 +02:00
parent 3ff71a4563
commit e042bf7d3a
2 changed files with 24 additions and 0 deletions

View File

@ -140,6 +140,10 @@ final class TestCaseFactory
$proxies = $this->proxies;
$factoryTest = $this->test;
if ($chains->hasMessage('markTestSkipped')) {
$proxies->forgetMessage('expectException');
}
/**
* @return mixed
*/