File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,8 @@ function everyItem(\Hamcrest\Matcher $itemMatcher)
313313
314314if (!function_exists ('hasToString ' )) {
315315 /**
316- * Does array size satisfy a given matcher?
316+ * Creates a matcher that matches any examined object whose <code>toString</code> or
317+ * <code>__toString()</code> method returns a value equalTo the specified string.
317318 */
318319 function hasToString ($ matcher )
319320 {
Original file line number Diff line number Diff line change 1010use Hamcrest \Util ;
1111
1212/**
13- * Matches if array size satisfies a nested matcher .
13+ * A Matcher that checks the output of the <code>toString()</code> or <code>__toString()</code> method .
1414 */
1515class HasToString extends FeatureMatcher
1616{
@@ -45,7 +45,8 @@ protected function featureValueOf($actual)
4545 }
4646
4747 /**
48- * Does array size satisfy a given matcher?
48+ * Creates a matcher that matches any examined object whose <code>toString</code> or
49+ * <code>__toString()</code> method returns a value equalTo the specified string.
4950 *
5051 * @factory
5152 */
Original file line number Diff line number Diff line change @@ -248,7 +248,8 @@ public static function everyItem(\Hamcrest\Matcher $itemMatcher)
248248 }
249249
250250 /**
251- * Does array size satisfy a given matcher?
251+ * Creates a matcher that matches any examined object whose <code>toString</code> or
252+ * <code>__toString()</code> method returns a value equalTo the specified string.
252253 */
253254 public static function hasToString ($ matcher )
254255 {
You can’t perform that action at this time.
0 commit comments