Skip to content
This repository
Browse code

Removing some new by reference calls

  • Loading branch information...
commit a7865b5d1d97cf9cc7611697b59a799bf5ab6e68 1 parent 2ccbf78
José Lorenzo Rodríguez authored July 19, 2012
10  lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
@@ -1034,7 +1034,7 @@ public function testPaginateOrderVirtualFieldSharedWithRealField() {
1034 1034
  * @return void
1035 1035
  */
1036 1036
 	public function testPaginateCustomFind() {
1037  
-		$Controller =& new Controller($this->request);
  1037
+		$Controller = new Controller($this->request);
1038 1038
 		$Controller->uses = array('PaginatorCustomPost');
1039 1039
 		$Controller->constructClasses();
1040 1040
 		$data = array('author_id' => 3, 'title' => 'Fourth Article', 'body' => 'Article Body, unpublished', 'published' => 'N');
@@ -1074,7 +1074,7 @@ public function testPaginateCustomFind() {
1074 1074
  * @return void
1075 1075
  */
1076 1076
 	public function testPaginateCustomFindFieldsArray() {
1077  
-		$Controller =& new Controller($this->request);
  1077
+		$Controller = new Controller($this->request);
1078 1078
 		$Controller->uses = array('PaginatorCustomPost');
1079 1079
 		$Controller->constructClasses();
1080 1080
 		$data = array('author_id' => 3, 'title' => 'Fourth Article', 'body' => 'Article Body, unpublished', 'published' => 'N');
@@ -1106,7 +1106,7 @@ public function testPaginateCustomFindFieldsArray() {
1106 1106
  * @return void
1107 1107
  */
1108 1108
 	public function testPaginateCustomFindWithCustomFindKey() {
1109  
-		$Controller =& new Controller($this->request);
  1109
+		$Controller = new Controller($this->request);
1110 1110
 		$Controller->uses = array('PaginatorCustomPost');
1111 1111
 		$Controller->constructClasses();
1112 1112
 		$data = array('author_id' => 3, 'title' => 'Fourth Article', 'body' => 'Article Body, unpublished', 'published' => 'N');
@@ -1139,7 +1139,7 @@ public function testPaginateCustomFindWithCustomFindKey() {
1139 1139
  * @return void
1140 1140
  */
1141 1141
 	public function testPaginateCustomFindGroupBy() {
1142  
-		$Controller =& new Controller($this->request);
  1142
+		$Controller = new Controller($this->request);
1143 1143
 		$Controller->uses = array('PaginatorCustomPost');
1144 1144
 		$Controller->constructClasses();
1145 1145
 		$data = array('author_id' => 2, 'title' => 'Fourth Article', 'body' => 'Article Body, unpublished', 'published' => 'N');
@@ -1204,7 +1204,7 @@ public function testPaginateCustomFindGroupBy() {
1204 1204
  * @return void
1205 1205
  */
1206 1206
 	public function testPaginateCustomFindCount() {
1207  
-		$Controller =& new Controller($this->request);
  1207
+		$Controller = new Controller($this->request);
1208 1208
 		$Controller->uses = array('PaginatorCustomPost');
1209 1209
 		$Controller->constructClasses();
1210 1210
 		$data = array('author_id' => 2, 'title' => 'Fourth Article', 'body' => 'Article Body, unpublished', 'published' => 'N');

0 notes on commit a7865b5

Please sign in to comment.
Something went wrong with that request. Please try again.