| 1 | <?php |
||
| 6 | class StringContainsIgnoringWhiteSpace extends SubstringMatcher |
||
| 7 | { |
||
| 8 | 7 | public function __construct($substring) |
|
| 12 | |||
| 13 | /** |
||
| 14 | * Matches if value is a string that contains $substring consider all whitespace as single space |
||
| 15 | */ |
||
| 16 | 7 | public static function containsStringIgnoringWhiteSpace($substring) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * @param \DOMElement $item |
||
| 23 | * |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | 7 | protected function evalSubstringOf($item) |
|
| 30 | |||
| 31 | protected function relationship() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Copied from IsEqualIgnoringWhiteSpace |
||
| 38 | * |
||
| 39 | * @param $string |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 8 | private function _stripSpace($string) |
|
| 52 | } |
||
| 53 |