| @@ 35-45 (lines=11) @@ | ||
| 32 | $this->matcher = $matcher; |
|
| 33 | } |
|
| 34 | ||
| 35 | public function describeTo(Description $description) |
|
| 36 | { |
|
| 37 | $description->appendText('having child '); |
|
| 38 | if ($this->matcher) { |
|
| 39 | if ($this->matcher instanceof Matcher) { |
|
| 40 | $description->appendDescriptionOf( $this->matcher ); |
|
| 41 | } else { |
|
| 42 | $description->appendValue($this->matcher); |
|
| 43 | } |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * @param \DOMDocument|\DOMNode $item |
|
| @@ 34-42 (lines=9) @@ | ||
| 31 | $this->classMatcher = $class; |
|
| 32 | } |
|
| 33 | ||
| 34 | public function describeTo(Description $description) |
|
| 35 | { |
|
| 36 | $description->appendText('with class '); |
|
| 37 | if ($this->classMatcher instanceof Matcher) { |
|
| 38 | $description->appendDescriptionOf($this->classMatcher); |
|
| 39 | } else { |
|
| 40 | $description->appendValue($this->classMatcher); |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @param \DOMElement $item |
|
| @@ 34-42 (lines=9) @@ | ||
| 31 | $this->tagNameMatcher = $tagName; |
|
| 32 | } |
|
| 33 | ||
| 34 | public function describeTo(Description $description) |
|
| 35 | { |
|
| 36 | $description->appendText('with tag name '); |
|
| 37 | if ($this->tagNameMatcher instanceof Matcher) { |
|
| 38 | $description->appendDescriptionOf($this->tagNameMatcher); |
|
| 39 | } else { |
|
| 40 | $description->appendValue($this->tagNameMatcher); |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @param \DOMElement $item |
|
| @@ 34-42 (lines=9) @@ | ||
| 31 | $this->matcher = $matcher; |
|
| 32 | } |
|
| 33 | ||
| 34 | public function describeTo(Description $description) |
|
| 35 | { |
|
| 36 | $description->appendText('having text contents '); |
|
| 37 | if ($this->matcher instanceof Matcher) { |
|
| 38 | $description->appendDescriptionOf($this->matcher); |
|
| 39 | } else { |
|
| 40 | $description->appendValue($this->matcher); |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @param \DOMElement $item |
|