From 33eefeb7847eb86d905bf372417cafded9fee744 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 20 May 2009 22:16:38 +0000 Subject: #452416 by bjaspan: Reformat status reporting code slightly to allow breakpoints in debuggers. --- modules/simpletest/drupal_web_test_case.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index ad0e1256e..d5c1d2d9f 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -191,7 +191,14 @@ class DrupalWebTestCase { // 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; + } } /** -- cgit v1.2.3