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