Вход Регистрация
Файл: gapps/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.php
Строк: 19
<?php
namespace Hamcrest;

/*
 Copyright (c) 2009 hamcrest.org
 */

/**
 * BaseClass for all Matcher implementations.
 *
 * @see HamcrestMatcher
 */
abstract class BaseMatcher implements Matcher
{

    public function 
describeMismatch($itemDescription $description)
    {
        
$description->appendText('was ')->appendValue($item);
    }

    public function 
__toString()
    {
        return 
StringDescription::toString($this);
    }
}
Онлайн: 0
Реклама