1: <?php
2:
3: /**
4: * This file is part of expect package.
5: *
6: * (c) Noritaka Horio <holy.shared.design@gmail.com>
7: *
8: * This source file is subject to the MIT license that is bundled
9: * with this source code in the file LICENSE.
10: */
11: namespace expect;
12:
13: /**
14: * To verify whether consistent with the results value is expected.
15: *
16: * @author Noritaka Horio <holy.shared.design@gmail.com>
17: * @copyright Noritaka Horio <holy.shared.design@gmail.com>
18: */
19: interface Matcher
20: {
21: /**
22: * Verify whether the value is consistent with what is expected.
23: * Returns true if the value matches the contents to be expected.
24: *
25: * @param mixed $actual value of actual
26: *
27: * @return bool results of evaluation
28: */
29: public function match($actual);
30: }
31: