Skip to content

Commit 4c1455a

Browse files
committed
Laravel - fixed some failing tests might not be collected.
1 parent 665ff9e commit 4c1455a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Clockwork/Support/Laravel/Tests/UsesClockwork.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function resolveClockworkAsserts()
5656
{
5757
$asserts = static::$clockwork['asserts'];
5858

59-
if ($this->getStatus() == BaseTestRunner::STATUS_FAILURE) {
59+
if ($this->getStatus() == BaseTestRunner::STATUS_FAILURE && count($asserts)) {
6060
$asserts[count($asserts) - 1]['passed'] = false;
6161
}
6262

0 commit comments

Comments
 (0)