Your IP : 3.138.34.93


Current Path : /home/lentoinv/api.lentoria.com/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/
Upload File :
Current File : //home/lentoinv/api.lentoria.com/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseMatcher.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);
    }

    public function __invoke()
    {
        return call_user_func_array(array($this, 'matches'), func_get_args());
    }
}

?>