From 62eb5c466e81f4df2d6138719291996c946bd192 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Mon, 1 Apr 2013 22:40:50 +0200 Subject: [PATCH] MDL-38547 behat: coding style fixes. --- lib/tests/behat/behat_general.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/tests/behat/behat_general.php b/lib/tests/behat/behat_general.php index 6069674bde9..f8285bc6f1a 100644 --- a/lib/tests/behat/behat_general.php +++ b/lib/tests/behat/behat_general.php @@ -227,7 +227,9 @@ class behat_general extends behat_base { } /** - * 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(?:[^"]|\\")*)" "(?P[^"]*)" should exists$/ * @throws ElementNotFoundException Thrown by behat_base::find @@ -244,7 +246,9 @@ class behat_general extends behat_base { } /** - * 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(?:[^"]|\\")*)" "(?P[^"]*)" should not exists$/ * @throws ExpectationException @@ -256,7 +260,7 @@ class behat_general extends behat_base { 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; } -- 2.43.0