MDL-40842 behat: fixed a typo
authorSam Hemelryk <sam@moodle.com>
Thu, 1 Aug 2013 08:08:30 +0000 (20:08 +1200)
committerSam Hemelryk <sam@moodle.com>
Thu, 1 Aug 2013 08:15:29 +0000 (20:15 +1200)
lib/tests/behat/behat_hooks.php

index bbbe7cc..43582fc 100644 (file)
@@ -250,7 +250,7 @@ class behat_hooks extends behat_base {
             // PHP debug messages.
             $phperrorxpath = "//div[@data-rel='phpdebugmessage']";
             // Any other backtrace.
-            $othersxpath = "//*[contains(., ': call to ')])[1]";
+            $othersxpath = "(//*[contains(., ': call to ')])[1]";
 
             $xpaths = array($exceptionsxpath, $debuggingxpath, $phperrorxpath, $othersxpath);
             $joinedxpath = implode(' | ', $xpaths);