hasFailed()); } /** * The Action Result has not failed if the status is not Failed. * * @return void */ public function testHasNotFailed(): void { $status = null; while ($status === null) { $statusCandidate = ActionStatus::getRandomInstance(); if (ActionStatus::FAILED()->isNot($statusCandidate)) { $status = $statusCandidate; } } $result = new ActionResult($status); static::assertFalse($result->hasFailed()); } }