| 1 | <?php |
||
| 7 | class ConstraintView extends \PHPUnit_Framework_Constraint |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $view; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var object |
||
| 16 | */ |
||
| 17 | protected $response; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Construct |
||
| 21 | * |
||
| 22 | * @param object $response |
||
| 23 | */ |
||
| 24 | 2 | public function __construct($response) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Evaluates the constraint for parameter $other. Returns true if the |
||
| 32 | * constraint is met, false otherwise. |
||
| 33 | * |
||
| 34 | * @param mixed $other Value or object to evaluate. |
||
| 35 | * |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | 2 | protected function matches($other) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * Returns a string representation of the constraint. |
||
| 51 | * |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | 2 | public function toString() |
|
| 65 | } |
||
| 66 |