We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87cdc17 commit e2ff61fCopy full SHA for e2ff61f
src/Constraint/JsonValueMatchesMany.php
@@ -66,4 +66,23 @@ protected function matches($other): bool
66
}
67
return true;
68
69
+
70
+ /**
71
+ * Returns a string representation of matches that evaluate to false.
72
+ *
73
+ * @return string
74
+ */
75
+ protected function additionalFailureDescription($other): string
76
+ {
77
+ /** @var string[] */
78
+ $failedConstraints = array();
79
80
+ foreach ($this->constraints as $constraint) {
81
+ if (!$constraint->evaluate($other, '', true)) {
82
+ $failedConstraints[] = $constraint->toString();
83
+ }
84
85
86
+ return "\n" . implode("\n", $failedConstraints);
87
88
0 commit comments