Skip to content
This repository was archived by the owner on May 27, 2023. It is now read-only.

Commit 15d232a

Browse files
committed
Merge branch 'dev'
2 parents d7fb0f1 + 3722836 commit 15d232a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

lib/EcomDev/PHPUnit/Constraint/Config.php

+17
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,21 @@ public function toString()
108108
{
109109
return $this->constraint->toString();
110110
}
111+
112+
/**
113+
* Returns the description of the failure
114+
*
115+
* The beginning of failure messages is "Failed asserting that" in most
116+
* cases. This method should return the second part of that sentence.
117+
*
118+
* To provide additional failure information additionalFailureDescription
119+
* can be used.
120+
*
121+
* @param mixed $other Evaluated value or object.
122+
* @return string
123+
*/
124+
protected function failureDescription($other)
125+
{
126+
return $this->constraint->failureDescription($other);
127+
}
111128
}

0 commit comments

Comments
 (0)