1 | <?php |
||
9 | class TextContentsMatcher extends TagMatcher { |
||
10 | |||
11 | /** |
||
12 | * @var Matcher |
||
13 | */ |
||
14 | private $matcher; |
||
15 | |||
16 | /** |
||
17 | * @param Matcher|string $text |
||
18 | * |
||
19 | * @return self |
||
20 | */ |
||
21 | public static function havingTextContents( $text ) { |
||
24 | |||
25 | public function __construct( Matcher $matcher ) { |
||
29 | |||
30 | 2 | public function describeTo( Description $description ) { |
|
33 | |||
34 | /** |
||
35 | * @param \DOMElement $item |
||
36 | * @param Description $mismatchDescription |
||
37 | * |
||
38 | * @return bool |
||
39 | */ |
||
40 | 4 | protected function matchesSafelyWithDiagnosticDescription( $item, Description $mismatchDescription ) { |
|
43 | |||
44 | } |
||
45 |