fix: skip with a false condition being ignored

This commit is contained in:
Nuno Maduro
2021-07-28 01:57:13 +01:00
parent b2c298b926
commit 22b822ce87
2 changed files with 22 additions and 1 deletions

View File

@ -148,6 +148,8 @@ final class TestCall
? $conditionOrMessage
: $message;
$condition = $condition->bindTo(null);
$this->testCaseFactory
->chains
->addWhen($condition, Backtrace::file(), Backtrace::line(), 'markTestSkipped', [$message]);