Skip to content

Commit

Permalink
Implement asString for Assertion\Made Event
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Möller <[email protected]>
Co-authored-by: Arne Blankerts <[email protected]>
  • Loading branch information
theseer and localheinz committed Mar 6, 2021
1 parent 11a7809 commit 757cb03
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Event/Assertion/Made.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ public function hasFailed(): bool

public function asString(): string
{
return '';
return sprintf(
'%s Assertion Made (Constraint: %s - Value: %s - Failed: %s - Message: %s)',
$this->telemetryInfo()->asString(),
$this->constraint()->toString(),
(string) $this->value(),
$this->hasFailed() ? 'true' : 'false',
$this->message()
);
}
}

0 comments on commit 757cb03

Please sign in to comment.