| 1 | <?php |
||
| 8 | final class PHPMatcherConstraint extends \PHPUnit_Framework_Constraint |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $pattern; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var Matcher |
||
| 17 | */ |
||
| 18 | private $matcher; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $pattern |
||
| 22 | */ |
||
| 23 | public function __construct($pattern) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function toString() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param mixed $other |
||
| 41 | * |
||
| 42 | * @return null|string |
||
| 43 | */ |
||
| 44 | protected function additionalFailureDescription($other) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param mixed $value |
||
| 51 | * |
||
| 52 | * @return bool |
||
| 53 | */ |
||
| 54 | protected function matches($value) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return Matcher |
||
| 61 | */ |
||
| 62 | private function createMatcher() |
||
| 68 | } |