@@ 162-164 (lines=3) @@ | ||
159 | if (empty($attr)) { |
|
160 | 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())); |
|
161 | } |
|
162 | if (strpos($attr, "$value") === false) { |
|
163 | 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())); |
|
164 | } |
|
165 | } |
|
166 | } |
|
167 | ||
@@ 196-198 (lines=3) @@ | ||
193 | $rules = explode(";", $style); |
|
194 | foreach ($rules as $rule) { |
|
195 | if (strpos($rule, $property) !== false) { |
|
196 | if (strpos($rule, $value) === false) { |
|
197 | 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())); |
|
198 | } |
|
199 | $found = true; |
|
200 | break; |
|
201 | } |