[mapguide-commits] r8223 - sandbox/jng/v30/UnitTest/WebTier/Php
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sat Jun 14 19:07:23 PDT 2014
Author: jng
Date: 2014-06-14 19:07:23 -0700 (Sat, 14 Jun 2014)
New Revision: 8223
Modified:
sandbox/jng/v30/UnitTest/WebTier/Php/HtmlPrinter.php
Log:
Fix HtmlPrinter syntax
Modified: sandbox/jng/v30/UnitTest/WebTier/Php/HtmlPrinter.php
===================================================================
--- sandbox/jng/v30/UnitTest/WebTier/Php/HtmlPrinter.php 2014-06-15 00:35:49 UTC (rev 8222)
+++ sandbox/jng/v30/UnitTest/WebTier/Php/HtmlPrinter.php 2014-06-15 02:07:23 UTC (rev 8223)
@@ -19,11 +19,15 @@
require_once("Utils.php");
+if (!defined('SQLITE_ROW')) {
+ define('SQLITE_ROW', 100);
+}
+
//This is a helper class that contains methods that output data in an Html format.
class HtmlPrinter
{
- public function PrintHtmlHeader($title)
+ public static function PrintHtmlHeader($title)
{
print ("<html>\n");
print ("<head>\n");
@@ -33,7 +37,7 @@
print("<h2>$title</h2>\n");
}
- public function PrintTestCases($testSuite, $dumpFilePath, $testType)
+ public static function PrintTestCases($testSuite, $dumpFilePath, $testType)
{
try
{
@@ -72,21 +76,21 @@
self::printTableEnd();
}
- public function PrintTestTableHeader($caption="", $c1="", $c2="", $c3="")
+ public static function PrintTestTableHeader($caption="", $c1="", $c2="", $c3="")
{
print("<table border=\"1\" cellpadding=\"5\">\n");
print("<h3><b>$caption</b></h3>");
print("<tr>\n");
- printf("<td> </td>\n<th>%s</th>\n<th>%s</th><th>%s</th>\n", $c1, $c2, $c3);
+ printf("<td> </td>\n<th>%s</th>\n<th>%s</th><th>%s</th><th> </th>\n", $c1, $c2, $c3);
print("</tr>\n");
}
- public function printTableEnd()
+ public static function printTableEnd()
{
print("</table><br />\n");
}
- public function PrintSelectTestMode()
+ public static function PrintSelectTestMode()
{
print("<h3>Select Test Mode</h3>\n");
print("<p>\n");
@@ -97,7 +101,7 @@
print("</p>\n");
}
- public function PrintSelectOutput()
+ public static function PrintSelectOutput()
{
print("<h3>Select Output</h3>\n");
print("<p>\n");
@@ -108,25 +112,25 @@
print("</p>\n");
}
- public function PrintHtmlFooter()
+ public static function PrintHtmlFooter()
{
print ("</body>\n");
print ("</html>\n");
}
- public function PrintFormHeader($target)
+ public static function PrintFormHeader($target)
{
print ("<form name=\"input\" action=\"$target\" method=\"POST\" id=\"myform\">\n");
}
- public function PrintFormFooter($requestType, $action)
+ public static function PrintFormFooter($requestType, $action)
{
print("<td><input type=\"hidden\" name=\"requestType\" value=\"$requestType\"></td>\n");
print ("<input type=\"submit\" value=\"$action\" ID=\"$action\" NAME=\"$action\"> <input type=\"reset\" ID=\"Reset1\" NAME=\"Reset1\">\n");
print ("</form>\n");
}
- public function AddResultRow($operation, $outcome, $paramSet, $actualResult="", $expectedResult="")
+ public static function AddResultRow($operation, $outcome, $paramSet, $actualResult="", $expectedResult="")
{
$checkBox="<input type=\"checkbox\" name=$paramSet>";
if ( $outcome=="fail")
@@ -141,7 +145,7 @@
print("</tr>");
}
- public function PrintResultTableHeader($caption="")
+ public static function PrintResultTableHeader($caption="")
{
print("<table scroll=\"no\" border=\"1\" cellpadding=\"5\">\n");
print("<h3><b>$caption</b></h3>");
@@ -150,7 +154,7 @@
print("</tr>\n");
}
- public function PrintGenerateFormHiddenFields()
+ public static function PrintGenerateFormHiddenFields()
{
$output = $_POST['output'];
$testName = $_POST['testName'];
More information about the mapguide-commits
mailing list