]> git.mxchange.org Git - mailer.git/blobdiff - inc/phpmailer/test/phpunit.php
Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / phpmailer / test / phpunit.php
index a476d30ef204bb21643d574a4ce0de8b28a0fb57..02c58e2d48af49cb34b8188a36e70cb2a78baaec 100644 (file)
@@ -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