This repository was archived by the owner on Mar 12, 2025. It is now read-only.
This repository was archived by the owner on Mar 12, 2025. It is now read-only.
Method matches of JsonContains must return bool #42
Closed
Description
Method returns nothing if assertEquals didn't throw an exception, but boolean is expected. I think this part should be:
try {
$comparator->assertEquals($this->expected, $jsonResponseArray->toArray());
} catch (ComparisonFailure $failure) {
throw new \PHPUnit\Framework\ExpectationFailedException(
"Response JSON does not contain the provided JSON\n",
$failure
);
}
return true;
Metadata
Metadata
Assignees
Labels
No labels