From 13c4361b97c1e581ea39f786c73f8edb2253500d Mon Sep 17 00:00:00 2001 From: Shane Caraveo Date: Sun, 9 Feb 2003 00:30:49 +0000 Subject: [PATCH] whitespace changes --- run-tests2.php | 251 ++++++++++++++++++++++++------------------------- 1 file changed, 125 insertions(+), 126 deletions(-) diff --git a/run-tests2.php b/run-tests2.php index c12ff94059..dcce4f7833 100644 --- a/run-tests2.php +++ b/run-tests2.php @@ -30,12 +30,12 @@ define('PHP_QA_EMAIL', 'php-qa@lists.php.net'); define('QA_SUBMISSION_PAGE', 'http://qa.php.net/buildtest-process.php'); class webHarness extends testHarness { - - var $textdata; - - function checkSafeMode() { - if (ini_get('safe_mode')) { - + + var $textdata; + + function checkSafeMode() { + if (ini_get('safe_mode')) { + ?>
@@ -49,112 +49,111 @@ how you configured "safe_mode".
- - - + +
TESTED FUNCTIONALITYRESULTTESTED FUNCTIONALITYRESULT
Additional Notes
displaymsg(); ?>


writemsg("ERROR: {$message}\n"); - exit(1); - } - - // Use this function to do any displaying of text, so that - // things can be over-written as necessary. - - function writemsg($msg) { - - $this->textdata = $this->textdata . $msg; - - } - - function displaymsg() { - + } + + function error($message) + { + $this->writemsg("ERROR: {$message}\n"); + exit(1); + } + + // Use this function to do any displaying of text, so that + // things can be over-written as necessary. + + function writemsg($msg) { + + $this->textdata = $this->textdata . $msg; + + } + + function displaymsg() { + ?> - - > - ROWSPAN=2>PASSED - - - >Notes: - - - - > - ROWSPAN=2>FAILED - - - >Notes: - - - - > - ROWSPAN=2>SKIPPED - - - >Notes: - - + +> + ROWSPAN=2>PASSED + + +>Notes: + + + +> + ROWSPAN=2>FAILED + + +>Notes: + + + +> + ROWSPAN=2>SKIPPED + + +>Notes: + +summarizeResults(); } - // Use this function to do any displaying of text, so that - // things can be over-written as necessary. - + // Use this function to do any displaying of text, so that + // things can be over-written as necessary. + function writemsg($msg) { echo $msg; @@ -246,27 +245,27 @@ class testHarness { // a particular test passes or fails function showstatus($item, $status, $reason = '') { - - switch($status) { - - case 'PASSED': - - $this->writemsg("PASSED: $item ($reason)\n"); - - break; - - case 'FAILED': - - $this->writemsg("FAILED: $item ($reason)\n"); - - break; - - case 'SKIPPED': - - $this->writemsg("SKIPPED: $item ($reason)\n"); - break; - - } + + switch($status) { + + case 'PASSED': + + $this->writemsg("PASSED: $item ($reason)\n"); + + break; + + case 'FAILED': + + $this->writemsg("FAILED: $item ($reason)\n"); + + break; + + case 'SKIPPED': + + $this->writemsg("SKIPPED: $item ($reason)\n"); + break; + + } } @@ -384,7 +383,7 @@ class testHarness { SAFE_MODE_WARNING; - writemsg($safewarn); + writemsg($safewarn); return true; } return false; @@ -466,7 +465,7 @@ SAFE_MODE_WARNING; function runFooter() { - + } function run() @@ -703,8 +702,8 @@ SAFE_MODE_WARNING; if (ereg("^skip", trim($output))){ $reason = (ereg("^skip[[:space:]]*(.+)\$", trim($output))) ? ereg_replace("^skip[[:space:]]*(.+)\$", "\\1", trim($output)) : FALSE; - $this->showstatus($section_text['TEST'], 'SKIPPED', $reason); - + $this->showstatus($section_text['TEST'], 'SKIPPED', $reason); + return 'SKIPPED'; } } -- 2.50.1