Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
namespace Hamcrest;
3
 
4
/*
5
 Copyright (c) 2009 hamcrest.org
6
 */
7
 
8
/**
9
 * BaseClass for all Matcher implementations.
10
 *
11
 * @see Hamcrest\Matcher
12
 */
13
abstract class BaseMatcher implements Matcher
14
{
15
 
16
    public function describeMismatch($item, Description $description)
17
    {
18
        $description->appendText('was ')->appendValue($item);
19
    }
20
 
21
    public function __toString()
22
    {
23
        return StringDescription::toString($this);
24
    }
25
 
26
    public function __invoke()
27
    {
28
        return call_user_func_array(array($this, 'matches'), func_get_args());
29
    }
30
}