mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removed unnecessary pass by references
This commit is contained in:
parent
1411e9495e
commit
5eab027b84
1 changed files with 3 additions and 3 deletions
|
@ -759,7 +759,7 @@ class ControllerTest extends CakeTestCase {
|
|||
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 @@ class ControllerTest extends CakeTestCase {
|
|||
$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 @@ class ControllerTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testValidateErrorsOnArbitraryModels() {
|
||||
$TestController =& new TestController();
|
||||
$TestController = new TestController();
|
||||
|
||||
$Post = new ControllerPost();
|
||||
$Post->validate = array('title' => 'notEmpty');
|
||||
|
|
Loading…
Reference in a new issue