1 | <?php |
||
9 | class RootElementMatcher extends TypeSafeDiagnosingMatcher { |
||
10 | |||
11 | /** |
||
12 | * @var Matcher |
||
13 | */ |
||
14 | private $tagMatcher; |
||
15 | |||
16 | /** |
||
17 | * @param Matcher|null $tagMatcher |
||
18 | * |
||
19 | * @return static |
||
20 | */ |
||
21 | 1 | public static function havingRootElement( Matcher $tagMatcher = null ) { |
|
24 | |||
25 | 1 | public function __construct( Matcher $tagMatcher = null ) { |
|
29 | |||
30 | 4 | public function describeTo( Description $description ) { |
|
36 | |||
37 | /** |
||
38 | * @param \DOMDocument $item |
||
39 | * @param Description $mismatchDescription |
||
40 | * |
||
41 | * @return bool |
||
42 | */ |
||
43 | 6 | protected function matchesSafelyWithDiagnosticDescription( $item, Description $mismatchDescription ) { |
|
66 | |||
67 | } |
||
68 |