assertTrue($result->hasFailed()); }); test('has not failed', function (): void { $status = null; while ($status === null) { $statusCandidate = Arr::random(ActionStatus::cases()); if ($statusCandidate !== ActionStatus::FAILED) { $status = $statusCandidate; } } $result = new ActionResult($status); $this->assertFalse($result->hasFailed()); });