sterling Sat Nov 30 22:13:03 2002 EDT
Modified files:
/php4 run-tests2.php
Log:
remove dos line endings
Index: php4/run-tests2.php
diff -u php4/run-tests2.php:1.3 php4/run-tests2.php:1.4
--- php4/run-tests2.php:1.3 Wed Nov 13 08:31:32 2002
+++ php4/run-tests2.php Sat Nov 30 22:13:03 2002
@@ -30,13 +30,13 @@
define('QA_SUBMISSION_PAGE', 'http://qa.php.net/buildtest-process.php');
class webHarness extends testHarness {
-
- var $textdata;
+
+ var $textdata;
function checkSafeMode() {
if (ini_get('safe_mode')) {
-?>
+?>
<CENTER>
<TABLE CELLPADDING=5 CELLSPACING=0 BORDER=1>
<TR>
@@ -54,56 +54,56 @@
}
return false;
}
-
- function runHeader() {
-
-?>
-<TABLE CELLPADDING=3 CELLSPACING=0 BORDER=0 STYLE="border: thin solid black;">
-<TR>
- <TD>TESTED FUNCTIONALITY</TD>
- <TD>RESULT</TD>
-</TR>
-<?php
-
- }
-
- function runFooter() {
-
-
-?>
-<TR>
-<TD COLSPAN=2 ALIGN=CENTER><FONT SIZE=3>Additional Notes</FONT><HR><?php
$this->displaymsg(); ?></TD>
-</TR>
-</TABLE><BR><BR>
-<?php
- }
-
+
+ function runHeader() {
+
+?>
+<TABLE CELLPADDING=3 CELLSPACING=0 BORDER=0 STYLE="border: thin solid black;">
+<TR>
+ <TD>TESTED FUNCTIONALITY</TD>
+ <TD>RESULT</TD>
+</TR>
+<?php
+
+ }
+
+ function runFooter() {
+
+
+?>
+<TR>
+<TD COLSPAN=2 ALIGN=CENTER><FONT SIZE=3>Additional Notes</FONT><HR><?php
+$this->displaymsg(); ?></TD>
+</TR>
+</TABLE><BR><BR>
+<?php
+ }
+
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() {
-
-?>
-<TEXTAREA ROWS=10 COLS=80><?=$this->textdata?></TEXTAREA>
-<?php
+ }
+
+ function displaymsg() {
+
+?>
+<TEXTAREA ROWS=10 COLS=80><?=$this->textdata?></TEXTAREA>
+<?php
}
// Another wrapper function, this one should be used any time
// a particular test passes or fails
- function showstatus($item, $status, $reason = '')
+ function showstatus($item, $status, $reason = '')
{
static $color = "#FAE998";
@@ -113,48 +113,48 @@
case 'PASSED':
- ?>
- <TR>
- <TD BGCOLOR=<?=$color?>><?=$item?></TD>
- <TD VALIGN=CENTER ALIGN=CENTER BGCOLOR=<?=$color?> ROWSPAN=2><FONT
COLOR=#00FF00>PASSED</FONT></TD>
- </TR>
- <TR>
- <TD BGCOLOR=<?=$color?>>Notes: <?=htmlentities($reason)?></TD>
- </TR>
+ ?>
+ <TR>
+ <TD BGCOLOR=<?=$color?>><?=$item?></TD>
+ <TD VALIGN=CENTER ALIGN=CENTER BGCOLOR=<?=$color?> ROWSPAN=2><FONT
+COLOR=#00FF00>PASSED</FONT></TD>
+ </TR>
+ <TR>
+ <TD BGCOLOR=<?=$color?>>Notes: <?=htmlentities($reason)?></TD>
+ </TR>
<?php
break;
case 'FAILED':
- ?>
- <TR>
- <TD BGCOLOR=<?=$color?>><?=$item?></TD>
- <TD VALIGN=CENTER ALIGN=CENTER BGCOLOR=<?=$color?> ROWSPAN=2><FONT
COLOR=#FF0000>FAILED</FONT></TD>
- </TR>
- <TR>
- <TD BGCOLOR=<?=$color?>>Notes: <?=htmlentities($reason)?></TD>
- </TR>
+ ?>
+ <TR>
+ <TD BGCOLOR=<?=$color?>><?=$item?></TD>
+ <TD VALIGN=CENTER ALIGN=CENTER BGCOLOR=<?=$color?> ROWSPAN=2><FONT
+COLOR=#FF0000>FAILED</FONT></TD>
+ </TR>
+ <TR>
+ <TD BGCOLOR=<?=$color?>>Notes: <?=htmlentities($reason)?></TD>
+ </TR>
<?php
break;
case 'SKIPPED':
- ?>
- <TR>
- <TD BGCOLOR=<?=$color?>><?=$item?></TD>
- <TD VALIGN=CENTER ALIGN=CENTER BGCOLOR=<?=$color?> ROWSPAN=2><FONT
COLOR=#000000>SKIPPED</FONT></TD>
- </TR>
- <TR>
- <TD BGCOLOR=<?=$color?>>Notes: <?=htmlentities($reason)?></TD>
- </TR>
+ ?>
+ <TR>
+ <TD BGCOLOR=<?=$color?>><?=$item?></TD>
+ <TD VALIGN=CENTER ALIGN=CENTER BGCOLOR=<?=$color?> ROWSPAN=2><FONT
+COLOR=#000000>SKIPPED</FONT></TD>
+ </TR>
+ <TR>
+ <TD BGCOLOR=<?=$color?>>Notes: <?=htmlentities($reason)?></TD>
+ </TR>
<?php
break;
}
- }
+ }
}
class testHarness {
@@ -978,4 +978,4 @@
* vim600: fdm=marker
* vim: noet sw=4 ts=4
*/
-?>
\ No newline at end of file
+?>
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php