1: <?php
2: /**
3: * Checks for equality
4: *
5: * Based on PHPUnit_Framework_Constraint_IsEqual
6: *
7: * @author James Pepin <james@jamespepin.com>
8: */
9: class Horde_Constraint_IsEqual implements Horde_Constraint
10: {
11: private $_value;
12:
13: public function __construct($value)
14: {
15: $this->_value = $value;
16: }
17:
18: public function evaluate($value)
19: {
20: return $this->_value == $value;
21: }
22: }
23: