From 81387cafd505968ce815bd10db81fa566afe6f25 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 1 Aug 2013 17:03:25 +1200 Subject: [PATCH] MDL-40842 behat: Reverting to backtrace catchall as xdebug warnings were being missed --- lib/tests/behat/behat_hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests/behat/behat_hooks.php b/lib/tests/behat/behat_hooks.php index f487c8f7da5c5..bbbe7ccc67ff5 100644 --- a/lib/tests/behat/behat_hooks.php +++ b/lib/tests/behat/behat_hooks.php @@ -250,7 +250,7 @@ public function i_look_for_exceptions() { // PHP debug messages. $phperrorxpath = "//div[@data-rel='phpdebugmessage']"; // Any other backtrace. - $othersxpath = "//ul[@data-rel='backtrace']"; + $othersxpath = "//*[contains(., ': call to ')])[1]"; $xpaths = array($exceptionsxpath, $debuggingxpath, $phperrorxpath, $othersxpath); $joinedxpath = implode(' | ', $xpaths);