MDL-19698 deprecated assign new by ref in simpletest lib

This commit is contained in:
Petr Skoda
2010-07-19 08:53:16 +00:00
parent 0ad09db03b
commit 0a8f8a65cd
21 changed files with 68 additions and 69 deletions
+3 -3
View File
@@ -53,7 +53,7 @@ class DetachedTestCase {
* @access public
*/
function run(&$reporter) {
$shell = &new SimpleShell();
$shell = new SimpleShell();
$shell->execute($this->_command);
$parser = &$this->_createParser($reporter);
if (! $parser->parse($shell->getOutput())) {
@@ -70,9 +70,9 @@ class DetachedTestCase {
*/
function getSize() {
if ($this->_size === false) {
$shell = &new SimpleShell();
$shell = new SimpleShell();
$shell->execute($this->_dry_command);
$reporter = &new SimpleReporter();
$reporter = new SimpleReporter();
$parser = &$this->_createParser($reporter);
if (! $parser->parse($shell->getOutput())) {
trigger_error('Cannot parse incoming XML from [' . $this->_dry_command . ']');