Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / phpmailer / test / phpunit.php
index 1d508680cc4d9fb753296d687c20a4a8cec3468b..02c58e2d48af49cb34b8188a36e70cb2a78baaec 100644 (file)
@@ -5,7 +5,7 @@
 // Written by Fred Yankowski <fred@ontosys.com>\r
 //            OntoSys, Inc  <http://www.OntoSys.com>\r
 //\r
-// $Id: phpunit.php,v 1.1 2002/03/30 19:32:17 bmatzelle Exp $\r
+// $Id: phpunit.php 880 2009-03-07 02:55:57Z quix0r $\r
 \r
 // Copyright (c) 2000 Fred Yankowski\r
 \r
@@ -113,7 +113,7 @@ class TestCase extends Assert /* implements Test */ {
       $testResult = $this->_createResult();\r
     $this->fResult = $testResult;\r
     $testResult->run(&$this);\r
-    $this->fResult = 0;\r
+    $this->fResult = '0';\r
     return $testResult;\r
   }\r
 \r
@@ -235,7 +235,7 @@ class TestSuite /* implements Test */ {
   function countTestCases() {\r
     /* Number of TestCases comprising this TestSuite (including those\r
        in any constituent TestSuites) */\r
-    $count = 0;\r
+    $count = '0';\r
     reset($fTests);\r
     while (list($na, $test_case) = each($this->fTests)) {\r
       $count += $test_case->countTestCases();\r
@@ -268,7 +268,7 @@ class TestFailure {
 class TestResult {\r
   /* Collect the results of running a set of TestCases. */\r
   var $fFailures = array();\r
-  var $fRunTests = 0;\r
+  var $fRunTests = '0';\r
   var $fStop = false;\r
 \r
   function TestResult() { }\r
@@ -331,7 +331,7 @@ class TextTestResult extends TestResult {
     $nFailures = $this->countFailures();\r
     printf("<p>%s test%s run<br>", $nRun, ($nRun == 1) ? '' : 's');\r
     printf("%s failure%s.<br>\n", $nFailures, ($nFailures == 1) ? '' : 's');\r
-    if ($nFailures == 0)\r
+    if ($nFailures == '0')\r
       return;\r
 \r
     print("<ol>\n");\r