Commit 214350 by webchick
#452416 by bjaspan: Reformat status reporting code slightly to allow breakpoints in debuggers.
--- modules/simpletest/drupal_web_test_case.php 2009/05/03 20:01:11 1.103
+++ modules/simpletest/drupal_web_test_case.php 2009/05/20 22:16:38 1.104
@@ -191,7 +191,14 @@
// Return to testing prefix.
$db_prefix = $current_db_prefix;
- return $status == 'pass' ? TRUE : FALSE;
+ // We do not use a ternary operator here to allow a breakpoint on
+ // test failure.
+ if ($status == 'pass') {
+ return TRUE;
+ }
+ else {
+ return FALSE;
+ }
}
/**
+++ modules/simpletest/drupal_web_test_case.php 2009/05/20 22:16:38 1.104
@@ -191,7 +191,14 @@
// Return to testing prefix.
$db_prefix = $current_db_prefix;
- return $status == 'pass' ? TRUE : FALSE;
+ // We do not use a ternary operator here to allow a breakpoint on
+ // test failure.
+ if ($status == 'pass') {
+ return TRUE;
+ }
+ else {
+ return FALSE;
+ }
}
/**