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
 * A description of a Matcher. A Matcher will describe itself to a description
10
 * which can later be used for reporting.
11
 *
12
 * @see Hamcrest\Matcher::describeTo()
13
 */
14
interface Description
15
{
16
 
17
    /**
18
     * Appends some plain text to the description.
19
     *
20
     * @param string $text
21
     *
22
     * @return \Hamcrest\Description
23
     */
24
    public function appendText($text);
25
 
26
    /**
27
     * Appends the description of a {@link Hamcrest\SelfDescribing} value to
28
     * this description.
29
     *
30
     * @param \Hamcrest\SelfDescribing $value
31
     *
32
     * @return \Hamcrest\Description
33
     */
34
    public function appendDescriptionOf(SelfDescribing $value);
35
 
36
    /**
37
     * Appends an arbitary value to the description.
38
     *
39
     * @param mixed $value
40
     *
41
     * @return \Hamcrest\Description
42
     */
43
    public function appendValue($value);
44
 
45
    /**
46
     * Appends a list of values to the description.
47
     *
48
     * @param string $start
49
     * @param string $separator
50
     * @param string $end
51
     * @param array|\IteratorAggregate|\Iterator $values
52
     *
53
     * @return \Hamcrest\Description
54
     */
55
    public function appendValueList($start, $separator, $end, $values);
56
 
57
    /**
58
     * Appends a list of {@link Hamcrest\SelfDescribing} objects to the
59
     * description.
60
     *
61
     * @param string $start
62
     * @param string $separator
63
     * @param string $end
64
     * @param array|\\IteratorAggregate|\\Iterator $values
65
     *   must be instances of {@link Hamcrest\SelfDescribing}
66
     *
67
     * @return \Hamcrest\Description
68
     */
69
    public function appendList($start, $separator, $end, $values);
70
}