| 1 | <?php |
||
| 30 | final class ToHaveKey implements ReportableMatcher |
||
| 31 | { |
||
| 32 | /** |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | private $actual; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var string|int |
||
| 39 | */ |
||
| 40 | private $expected; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string|int $expected |
||
| 44 | */ |
||
| 45 | public function __construct($expected) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function match($actual) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritdoc} |
||
| 66 | */ |
||
| 67 | public function reportFailed(FailedMessage $message) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * {@inheritdoc} |
||
| 75 | */ |
||
| 76 | public function reportNegativeFailed(FailedMessage $message) |
||
| 81 | } |
||
| 82 |