Removed unnecessary pass by references

This commit is contained in:
Jeremy Harris 2010-12-05 17:28:15 -08:00
parent 1411e9495e
commit 5eab027b84

View file

@ -759,7 +759,7 @@ class ControllerTest extends CakeTestCase {
function testPaginateFieldsDouble(){ function testPaginateFieldsDouble(){
$request = new CakeRequest('controller_posts/index'); $request = new CakeRequest('controller_posts/index');
$Controller =& new Controller($request); $Controller = new Controller($request);
$Controller->uses = array('ControllerPost'); $Controller->uses = array('ControllerPost');
$Controller->request->params['url'] = array(); $Controller->request->params['url'] = array();
$Controller->constructClasses(); $Controller->constructClasses();
@ -1044,7 +1044,7 @@ class ControllerTest extends CakeTestCase {
$core[0] $core[0]
) )
), true); ), true);
$Controller =& new Controller($this->getMock('CakeRequest')); $Controller = new Controller($this->getMock('CakeRequest'));
$Controller->uses = array(); $Controller->uses = array();
$Controller->components = array('Test'); $Controller->components = array('Test');
$Controller->constructClasses(); $Controller->constructClasses();
@ -1408,7 +1408,7 @@ class ControllerTest extends CakeTestCase {
* @return void * @return void
*/ */
function testValidateErrorsOnArbitraryModels() { function testValidateErrorsOnArbitraryModels() {
$TestController =& new TestController(); $TestController = new TestController();
$Post = new ControllerPost(); $Post = new ControllerPost();
$Post->validate = array('title' => 'notEmpty'); $Post->validate = array('title' => 'notEmpty');