Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hamcrest/Hamcrest.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ function everyItem(\Hamcrest\Matcher $itemMatcher)

if (!function_exists('hasToString')) {
/**
* Does array size satisfy a given matcher?
* Creates a matcher that matches any examined object whose <code>toString</code> or
* <code>__toString()</code> method returns a value equalTo the specified string.
*/
function hasToString($matcher)
{
Expand Down
5 changes: 3 additions & 2 deletions hamcrest/Hamcrest/Core/HasToString.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Hamcrest\Util;

/**
* Matches if array size satisfies a nested matcher.
* A Matcher that checks the output of the <code>toString()</code> or <code>__toString()</code> method.
*/
class HasToString extends FeatureMatcher
{
Expand Down Expand Up @@ -45,7 +45,8 @@ protected function featureValueOf($actual)
}

/**
* Does array size satisfy a given matcher?
* Creates a matcher that matches any examined object whose <code>toString</code> or
* <code>__toString()</code> method returns a value equalTo the specified string.
*
* @factory
*/
Expand Down
3 changes: 2 additions & 1 deletion hamcrest/Hamcrest/Matchers.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ public static function everyItem(\Hamcrest\Matcher $itemMatcher)
}

/**
* Does array size satisfy a given matcher?
* Creates a matcher that matches any examined object whose <code>toString</code> or
* <code>__toString()</code> method returns a value equalTo the specified string.
*/
public static function hasToString($matcher)
{
Expand Down