Files
w4rpservices/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php
T
2018-10-15 00:37:28 -05:00

26 lines
442 B
PHP

<?php
namespace Hamcrest;
/*
Copyright (c) 2009 hamcrest.org
*/
/**
* BaseClass for all Matcher implementations.
*
* @see Hamcrest\Matcher
*/
abstract class BaseMatcher implements Matcher
{
public function describeMismatch($item, Description $description)
{
$description->appendText('was ')->appendValue($item);
}
public function __toString()
{
return StringDescription::toString($this);
}
}