[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] xmlrpc phpunit.php,1.3
From: |
powerstat |
Subject: |
[Phpgroupware-cvs] xmlrpc phpunit.php,1.3 |
Date: |
Wed, 4 May 2005 16:14:00 +0200 |
Update of xmlrpc
Modified Files:
Branch: MAIN
phpunit.php lines: +8 -8
Log Message:
Fixes deprecated (since 2003) call by reference functions calls. Some function
declarations have been changed for call by reference
====================================================
Index: xmlrpc/phpunit.php
diff -u xmlrpc/phpunit.php:1.2 xmlrpc/phpunit.php:1.3
--- xmlrpc/phpunit.php:1.2 Fri Dec 14 14:11:50 2001
+++ xmlrpc/phpunit.php Wed May 4 14:14:34 2005
@@ -50,7 +50,7 @@
{
/* Emulate a Java exception, sort of... */
var $message;
- function Exception($message)
+ function Exception(&$message)
{
$this->message = $message;
}
@@ -114,7 +114,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
@@ -128,7 +128,7 @@
$testResult = $this->_createResult();
}
$this->fResult = $testResult;
- $testResult->run(&$this);
+ $testResult->run($this);
$this->fResult = 0;
return $testResult;
}
@@ -168,7 +168,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)
@@ -267,7 +267,7 @@
{
break;
}
- $test->run(&$testResult);
+ $test->run($testResult);
}
}
@@ -328,7 +328,7 @@
return $this->fFailures;
}
- function run($test)
+ function run(&$test)
{
/* Run a single TestCase in the context of this
TestResult */
$this->_startTest($test);
@@ -340,7 +340,7 @@
$exceptions = $test->getExceptions();
if ($exceptions)
{
- $this->fFailures[] = new TestFailure(&$test,
&$exceptions);
+ $this->fFailures[] = new TestFailure($test,
$exceptions);
}
$this->_endTest($test);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] xmlrpc phpunit.php,1.3,
powerstat <=