X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fphpmailer%2Ftest%2Fphpunit.php;h=1d508680cc4d9fb753296d687c20a4a8cec3468b;hb=bd5226ed8d217bbef9b5e57e0bfe6ba72b034be2;hp=02c58e2d48af49cb34b8188a36e70cb2a78baaec;hpb=d495bd859975d08ee459d03c9b1cd51dd9b9304d;p=mailer.git diff --git a/inc/phpmailer/test/phpunit.php b/inc/phpmailer/test/phpunit.php index 02c58e2d48..1d508680cc 100644 --- a/inc/phpmailer/test/phpunit.php +++ b/inc/phpmailer/test/phpunit.php @@ -5,7 +5,7 @@ // Written by Fred Yankowski // OntoSys, Inc // -// $Id: phpunit.php 880 2009-03-07 02:55:57Z quix0r $ +// $Id: phpunit.php,v 1.1 2002/03/30 19:32:17 bmatzelle Exp $ // Copyright (c) 2000 Fred Yankowski @@ -113,7 +113,7 @@ class TestCase extends Assert /* implements Test */ { $testResult = $this->_createResult(); $this->fResult = $testResult; $testResult->run(&$this); - $this->fResult = '0'; + $this->fResult = 0; return $testResult; } @@ -235,7 +235,7 @@ class TestSuite /* implements Test */ { function countTestCases() { /* Number of TestCases comprising this TestSuite (including those in any constituent TestSuites) */ - $count = '0'; + $count = 0; reset($fTests); while (list($na, $test_case) = each($this->fTests)) { $count += $test_case->countTestCases(); @@ -268,7 +268,7 @@ class TestFailure { class TestResult { /* Collect the results of running a set of TestCases. */ var $fFailures = array(); - var $fRunTests = '0'; + var $fRunTests = 0; var $fStop = false; function TestResult() { } @@ -331,7 +331,7 @@ class TextTestResult extends TestResult { $nFailures = $this->countFailures(); printf("

%s test%s run
", $nRun, ($nRun == 1) ? '' : 's'); printf("%s failure%s.
\n", $nFailures, ($nFailures == 1) ? '' : 's'); - if ($nFailures == '0') + if ($nFailures == 0) return; print("

    \n");