| 1 | <?php |
||
| 9 | class ChildElementMatcher extends TypeSafeDiagnosingMatcher { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var Matcher|null |
||
| 13 | */ |
||
| 14 | private $matcher; |
||
| 15 | |||
| 16 | public static function havingChild( Matcher $elementMatcher = null ) { |
||
| 19 | |||
| 20 | public function __construct( Matcher $matcher = null ) { |
||
| 24 | |||
| 25 | 7 | public function describeTo( Description $description ) { |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param \DOMDocument|\DOMNode $item |
||
| 34 | * @param Description $mismatchDescription |
||
| 35 | * |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | 17 | protected function matchesSafelyWithDiagnosticDescription( $item, Description $mismatchDescription ) { |
|
| 63 | |||
| 64 | } |
||
| 65 |