MDL-19698 deprecated assign new by ref in simpletest lib
This commit is contained in:
@@ -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 . ']');
|
||||
|
||||
Reference in New Issue
Block a user