Skip to content

Commit

Permalink
further debug value of $rule2 assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Apr 28, 2024
1 parent df2df9a commit 89f5961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/LitCalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function runTest(): void {
$rule2 = ($actualValue === $assertion->expectedValue);
try {
if( true === assert( $rule2, $messageIfError . $secondErrorMessage ) ) {
$this->setSuccess( "expectedValue = {$assertion->expectedValue}, actualValue = {$actualValue}" );
$this->setSuccess( "expectedValue = {$assertion->expectedValue}, actualValue = {$actualValue}, rule result is of type " .gettype($rule2). " with a value of " . ($rule2 ? 'true' : 'false') );
}
} catch (AssertionError $e) {
$this->setError( $e->getMessage() );
Expand Down

0 comments on commit 89f5961

Please sign in to comment.