MDL-19698 deprecated assign new by ref in portfolio
authorPetr Skoda <skodak@moodle.org>
Mon, 19 Jul 2010 08:34:53 +0000 (08:34 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 19 Jul 2010 08:34:53 +0000 (08:34 +0000)
portfolio/boxnet/simpletest/testportfoliopluginboxnet.php
portfolio/download/simpletest/testportfolioplugindownload.php

index 4ddb2df..f632a14 100644 (file)
@@ -12,7 +12,7 @@ class testPortfolioPluginBoxnet extends portfoliolib_test {
         global $DB;
 
         parent::setUp();
-        $this->plugin = &new mock_boxnetplugin($this);
+        $this->plugin = new mock_boxnetplugin($this);
         $this->plugin->boxclient = new mock_boxclient();
 
         $settings = array('tiny' => 1, 'quiet' => 1, 'database_prefix' => 'tst_', 'pre_cleanup' => 1,
index 294fbc4..2e5fbc7 100755 (executable)
@@ -10,7 +10,7 @@ class testPortfolioPluginDownload extends portfoliolib_test {
     public static $includecoverage = array('lib/portfoliolib.php', 'portfolio/download/lib.php');
     public function setUp() {
         parent::setUp();
-        $this->plugin = &new mock_boxnetplugin($this);
+        $this->plugin = new mock_boxnetplugin($this);
         $this->plugin->boxclient = new mock_boxclient();
     }