Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing some new by reference calls

  • Loading branch information...
commit a7865b5d1d97cf9cc7611697b59a799bf5ab6e68 1 parent 2ccbf78
@lorenzo lorenzo authored
View
10 lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
@@ -1034,7 +1034,7 @@ public function testPaginateOrderVirtualFieldSharedWithRealField() {
* @return void
*/
public function testPaginateCustomFind() {
- $Controller =& new Controller($this->request);
+ $Controller = new Controller($this->request);
$Controller->uses = array('PaginatorCustomPost');
$Controller->constructClasses();
$data = array('author_id' => 3, 'title' => 'Fourth Article', 'body' => 'Article Body, unpublished', 'published' => 'N');
@@ -1074,7 +1074,7 @@ public function testPaginateCustomFind() {
* @return void
*/
public function testPaginateCustomFindFieldsArray() {
- $Controller =& new Controller($this->request);
+ $Controller = new Controller($this->request);
$Controller->uses = array('PaginatorCustomPost');
$Controller->constructClasses();
$data = array('author_id' => 3, 'title' => 'Fourth Article', 'body' => 'Article Body, unpublished', 'published' => 'N');
@@ -1106,7 +1106,7 @@ public function testPaginateCustomFindFieldsArray() {
* @return void
*/
public function testPaginateCustomFindWithCustomFindKey() {
- $Controller =& new Controller($this->request);
+ $Controller = new Controller($this->request);
$Controller->uses = array('PaginatorCustomPost');
$Controller->constructClasses();
$data = array('author_id' => 3, 'title' => 'Fourth Article', 'body' => 'Article Body, unpublished', 'published' => 'N');
@@ -1139,7 +1139,7 @@ public function testPaginateCustomFindWithCustomFindKey() {
* @return void
*/
public function testPaginateCustomFindGroupBy() {
- $Controller =& new Controller($this->request);
+ $Controller = new Controller($this->request);
$Controller->uses = array('PaginatorCustomPost');
$Controller->constructClasses();
$data = array('author_id' => 2, 'title' => 'Fourth Article', 'body' => 'Article Body, unpublished', 'published' => 'N');
@@ -1204,7 +1204,7 @@ public function testPaginateCustomFindGroupBy() {
* @return void
*/
public function testPaginateCustomFindCount() {
- $Controller =& new Controller($this->request);
+ $Controller = new Controller($this->request);
$Controller->uses = array('PaginatorCustomPost');
$Controller->constructClasses();
$data = array('author_id' => 2, 'title' => 'Fourth Article', 'body' => 'Article Body, unpublished', 'published' => 'N');
Please sign in to comment.
Something went wrong with that request. Please try again.