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\matcher;
12:
13: /**
14: * Verify value is false.
15: *
16: * <code>
17: * $matcher = new ToBeFalse();
18: * $matcher->match(false); //return true
19: *
20: * $matcher->match(true); //return false
21: * $matcher->match("foo"); //return false
22: * </code>
23: *
24: * @author Noritaka Horio <holy.shared.design@gmail.com>
25: * @copyright Noritaka Horio <holy.shared.design@gmail.com>
26: */
27: final class ToBeFalse implements ReportableMatcher
28: {
29: use EqualMatcherDelegatable;
30:
31: /**
32: * Create a new matcher.
33: */
34: public function __construct()
35: {
36: $this->equalMatcher = new ToEqual(false);
37: }
38: }
39: