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 665ff9e commit 4c1455aCopy full SHA for 4c1455a
1 file changed
Clockwork/Support/Laravel/Tests/UsesClockwork.php
@@ -56,7 +56,7 @@ protected function resolveClockworkAsserts()
56
{
57
$asserts = static::$clockwork['asserts'];
58
59
- if ($this->getStatus() == BaseTestRunner::STATUS_FAILURE) {
+ if ($this->getStatus() == BaseTestRunner::STATUS_FAILURE && count($asserts)) {
60
$asserts[count($asserts) - 1]['passed'] = false;
61
}
62
0 commit comments