Skip to content

Commit 2f2740a

Browse files
authored
Merge pull request #93 from pscheit/fix-has-to-string-description
Fix HasToString description
2 parents e37edf7 + d4a1be8 commit 2f2740a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

hamcrest/Hamcrest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ function everyItem(\Hamcrest\Matcher $itemMatcher)
313313

314314
if (!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
{

hamcrest/Hamcrest/Core/HasToString.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use 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
*/
1515
class 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
*/

hamcrest/Hamcrest/Matchers.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)