| 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 | public function __construct($pattern) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function toString() |
||
| 35 | |||
| 36 | protected function additionalFailureDescription($other) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param mixed $value |
||
| 43 | * |
||
| 44 | * @return bool |
||
| 45 | */ |
||
| 46 | protected function matches($value) |
||
| 50 | } |