Skip to content
Permalink
Browse files

Removed unnecessary pass by references

  • Loading branch information...
jeremyharris committed Dec 6, 2010
1 parent 1411e94 commit 5eab027b84ef970ef48a91a2e40ef0bff5a1d16f
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/tests/cases/libs/controller/controller.test.php
@@ -759,7 +759,7 @@ function testPaginateExtraParams() {
function testPaginateFieldsDouble(){
$request = new CakeRequest('controller_posts/index');
$Controller =& new Controller($request);
$Controller = new Controller($request);
$Controller->uses = array('ControllerPost');
$Controller->request->params['url'] = array();
$Controller->constructClasses();
@@ -1044,7 +1044,7 @@ function testComponentBeforeRenderChangingViewClass() {
$core[0]
)
), true);
$Controller =& new Controller($this->getMock('CakeRequest'));
$Controller = new Controller($this->getMock('CakeRequest'));
$Controller->uses = array();
$Controller->components = array('Test');
$Controller->constructClasses();
@@ -1408,7 +1408,7 @@ function testValidateErrors() {
* @return void
*/
function testValidateErrorsOnArbitraryModels() {
$TestController =& new TestController();
$TestController = new TestController();
$Post = new ControllerPost();
$Post->validate = array('title' => 'notEmpty');

0 comments on commit 5eab027

Please sign in to comment.
You can’t perform that action at this time.