|
@@ 186-188 (lines=3) @@
|
| 183 |
|
if (empty($attr)) { |
| 184 |
|
throw new \Exception(sprintf('The "%s" attribute is not present on the element "%s" in the "%s" region on the page %s', $attribute, $tag, $region, $this->getSession()->getCurrentUrl())); |
| 185 |
|
} |
| 186 |
|
if (strpos($attr, "$value") === false) { |
| 187 |
|
throw new \Exception(sprintf('The "%s" attribute does not equal "%s" on the element "%s" in the "%s" region on the page %s', $attribute, $value, $tag, $region, $this->getSession()->getCurrentUrl())); |
| 188 |
|
} |
| 189 |
|
} |
| 190 |
|
} |
| 191 |
|
|
|
@@ 220-222 (lines=3) @@
|
| 217 |
|
$rules = explode(";", $style); |
| 218 |
|
foreach ($rules as $rule) { |
| 219 |
|
if (strpos($rule, $property) !== false) { |
| 220 |
|
if (strpos($rule, $value) === false) { |
| 221 |
|
throw new \Exception(sprintf('The "%s" style property does not equal "%s" on the element "%s" in the "%s" region on the page %s', $property, $value, $tag, $region, $this->getSession()->getCurrentUrl())); |
| 222 |
|
} |
| 223 |
|
$found = true; |
| 224 |
|
break; |
| 225 |
|
} |