Skip to content

Commit

Permalink
constraint\Composite: Pass ComparisonFailure from ExpectationFailedEx…
Browse files Browse the repository at this point in the history
…ception to fail()
  • Loading branch information
mceyran authored and sebastianbergmann committed Jun 9, 2017
1 parent 482eef4 commit 4e2b54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/Constraint/Composite.php
Expand Up @@ -54,7 +54,7 @@ public function evaluate($other, $description = '', $returnResult = false)
$returnResult
);
} catch (ExpectationFailedException $e) {
$this->fail($other, $description);
$this->fail($other, $description, $e->getComparisonFailure());
}
}

Expand Down

0 comments on commit 4e2b54d

Please sign in to comment.