[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] email/inc/phpmailer/test phpunit.php,1.2
From: |
powerstat |
Subject: |
[Phpgroupware-cvs] email/inc/phpmailer/test phpunit.php,1.2 |
Date: |
Thu, 5 May 2005 19:48:00 +0200 |
Update of email/inc/phpmailer/test
Modified Files:
Branch: MAIN
phpunit.php lines: +7 -7
Log Message:
Fixes deprecated (since 2003) call by reference functions calls. Some function
declarations have been changed for call by reference
====================================================
Index: email/inc/phpmailer/test/phpunit.php
diff -u email/inc/phpmailer/test/phpunit.php:1.1
email/inc/phpmailer/test/phpunit.php:1.2
--- email/inc/phpmailer/test/phpunit.php:1.1 Sun Mar 13 23:22:44 2005
+++ email/inc/phpmailer/test/phpunit.php Thu May 5 17:48:10 2005
@@ -49,7 +49,7 @@
class Exception {
/* Emulate a Java exception, sort of... */
var $message;
- function Exception($message) {
+ function Exception(&$message) {
$this->message = $message;
}
function getMessage() {
@@ -101,7 +101,7 @@
$this->fName = $name;
}
- function run($testResult=0) {
+ function run(&$testResult=0) {
/* Run this single test, by calling the run() method of the
TestResult object which will in turn call the runBare() method
of this object. That complication allows the TestResult object
@@ -112,7 +112,7 @@
if (! $testResult)
$testResult = $this->_createResult();
$this->fResult = $testResult;
- $testResult->run(&$this);
+ $testResult->run($this);
$this->fResult = 0;
return $testResult;
}
@@ -147,7 +147,7 @@
//printf("TestCase::fail(%s)<br>\n", ($message) ? $message : '');
/* JUnit throws AssertionFailedError here. We just record the
failure and carry on */
- $this->fExceptions[] = new Exception(&$message);
+ $this->fExceptions[] = new Exception($message);
}
function error($message) {
@@ -228,7 +228,7 @@
while (list($na, $test) = each($this->fTests)) {
if ($testResult->shouldStop())
break;
- $test->run(&$testResult);
+ $test->run($testResult);
}
}
@@ -292,7 +292,7 @@
/* this is where JUnit would catch AssertionFailedError */
$exceptions = $test->getExceptions();
if ($exceptions)
- $this->fFailures[] = new TestFailure(&$test, &$exceptions);
+ $this->fFailures[] = new TestFailure($test, $exceptions);
$this->_endTest($test);
}
- Prev by Date:
[Phpgroupware-cvs] phpgwapi/templates/verdilak/css styles.css,1.2
- Next by Date:
[Phpgroupware-cvs] email/inc class.uijsaddressbook.inc.php, 1.7 class.uiattach_file.inc.php, 1.5 class.uifolder.inc.php, 1.8 class.uisearch.inc.php, 1.4 class.ui_mail_debug.inc.php, 1.5 class.uiindex.inc.php, 1.25 class.uipreferences.inc.php, 1.20 class.uifilters.inc.php, 1.17 class.uimessage.inc.php, 1.14 class.uicompose.inc.php, 1.8
- Previous by thread:
[Phpgroupware-cvs] email/inc/phpmailer/test phpunit.php,1.2
- Next by thread:
[Phpgroupware-cvs] email/inc/phpmailer/test phpunit.php,1.2
- Index(es):