X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fphpmailer%2Ftest%2Fphpunit.php;h=1ce4cb9ed541ff74b1f7969ab3b7ac3fff594bc8;hp=33447690cb6d9633e372274b3ee676c3480978c8;hb=9a60a71dde1189e5c922a6dd377b862d08ea8f51;hpb=8383fc52cd2340ea1756f9e1808fa3589e27c341 diff --git a/inc/phpmailer/test/phpunit.php b/inc/phpmailer/test/phpunit.php index 33447690cb..1ce4cb9ed5 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,v 1.1 2002/03/30 19:32:17 bmatzelle Exp $ +// $Id$ // Copyright (c) 2000 Fred Yankowski @@ -77,7 +77,7 @@ class Assert { function failNotEquals($expected, $actual, $expected_label, $message=0) { // Private function for reporting failure to match. - $str = $message ? ($message . ' ') : ""; + $str = $message ? ($message . ' ') : ''; $str .= "($expected_label/actual)
"; $htmlExpected = htmlspecialchars($expected); $htmlActual = htmlspecialchars($actual); @@ -144,7 +144,7 @@ class TestCase extends Assert /* implements Test */ { } function fail($message=0) { - //printf("TestCase::fail(%s)
\n", ($message) ? $message : ""); + //printf("TestCase::fail(%s)
\n", ($message) ? $message : ''); /* JUnit throws AssertionFailedError here. We just record the failure and carry on */ $this->fExceptions[] = new Exception(&$message); @@ -329,8 +329,8 @@ class TextTestResult extends TestResult { /* report result of test run */ $nRun = $this->countTests(); $nFailures = $this->countFailures(); - printf("

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

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