@@ 155-157 (lines=3) @@ | ||
152 | if (empty($attr)) { |
|
153 | 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())); |
|
154 | } |
|
155 | if (strpos($attr, "$value") === FALSE) { |
|
156 | 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())); |
|
157 | } |
|
158 | } |
|
159 | } |
|
160 | ||
@@ 188-190 (lines=3) @@ | ||
185 | $rules = explode(";", $style); |
|
186 | foreach ($rules as $rule) { |
|
187 | if (strpos($rule, $property) !== FALSE) { |
|
188 | if (strpos($rule, $value) === FALSE) { |
|
189 | 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())); |
|
190 | } |
|
191 | $found = TRUE; |
|
192 | break; |
|
193 | } |