Permalink
Browse files

MDL-38547 behat: coding style fixes.

  • Loading branch information...
1 parent 54e48dc commit 62eb5c466e81f4df2d6138719291996c946bd192 @stronk7 stronk7 committed Apr 1, 2013
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/tests/behat/behat_general.php
@@ -227,7 +227,9 @@ public function the_element_should_be_enabled($element, $selectortype) {
}
/**
- * Checks the provided element and selector type exists in the current page. This step is for advanced users, use it if you don't find anything else suitable for what you need.
+ * Checks the provided element and selector type exists in the current page.
+ *
+ * This step is for advanced users, use it if you don't find anything else suitable for what you need.
*
* @Then /^"(?P<element_string>(?:[^"]|\\")*)" "(?P<selector_string>[^"]*)" should exists$/
* @throws ElementNotFoundException Thrown by behat_base::find
@@ -244,7 +246,9 @@ public function should_exists($element, $selectortype) {
}
/**
- * Checks that the provided element and selector type not exists in the current page. This step is for advanced users, use it if you don't find anything else suitable for what you need.
+ * Checks that the provided element and selector type not exists in the current page.
+ *
+ * This step is for advanced users, use it if you don't find anything else suitable for what you need.
*
* @Then /^"(?P<element_string>(?:[^"]|\\")*)" "(?P<selector_string>[^"]*)" should not exists$/
* @throws ExpectationException
@@ -256,7 +260,7 @@ public function should_not_exists($element, $selectortype) {
try {
$this->should_exists($element, $selectortype);
throw new ExpectationException('The "' . $element . '" "' . $selectortype . '" exists in the current page', $this->getSession());
- }catch (ElementNotFoundException $e) {
+ } catch (ElementNotFoundException $e) {
// It passes.
return;
}

0 comments on commit 62eb5c4

Please sign in to comment.