Skip to content

Commit

Permalink
Removing some new by reference calls
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jul 19, 2012
1 parent 2ccbf78 commit a7865b5
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit a7865b5

Please sign in to comment.