|
@@ 280-284 (lines=5) @@
|
| 277 |
|
$items = $this->cssParser()->getBySelector($selector); |
| 278 |
|
|
| 279 |
|
$actuals = array(); |
| 280 |
|
if ($items) { |
| 281 |
|
foreach ($items as $item) { |
| 282 |
|
$actuals[trim(preg_replace('/\s+/', ' ', (string)$item))] = true; |
| 283 |
|
} |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
$message = $message ?: |
| 287 |
|
"Failed asserting the CSS selector '$selector' has a partial match to the expected elements:\n'" |
|
@@ 317-321 (lines=5) @@
|
| 314 |
|
$items = $this->cssParser()->getBySelector($selector); |
| 315 |
|
|
| 316 |
|
$actuals = array(); |
| 317 |
|
if ($items) { |
| 318 |
|
foreach ($items as $item) { |
| 319 |
|
$actuals[] = trim(preg_replace('/\s+/', ' ', (string)$item)); |
| 320 |
|
} |
| 321 |
|
} |
| 322 |
|
|
| 323 |
|
$message = $message ?: |
| 324 |
|
"Failed asserting the CSS selector '$selector' has an exact match to the expected elements:\n'" |