| 1 | <?php |
||
| 4 | class ConstraintMatcher extends MatcherAbstract |
||
| 5 | { |
||
| 6 | protected $constraint; |
||
| 7 | protected $rethrow; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @param \PHPUnit_Framework_Constraint $constraint |
||
| 11 | * @param bool $rethrow |
||
| 12 | */ |
||
| 13 | 3 | public function __construct(\PHPUnit_Framework_Constraint $constraint, $rethrow = false) |
|
| 18 | |||
| 19 | /** |
||
| 20 | * @param mixed $actual |
||
| 21 | * @return bool |
||
| 22 | */ |
||
| 23 | 2 | public function match(&$actual) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * |
||
| 38 | */ |
||
| 39 | 1 | public function __toString() |
|
| 43 | } |
||
| 44 |