mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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(){
|
function testPaginateFieldsDouble(){
|
||||||
$request = new CakeRequest('controller_posts/index');
|
$request = new CakeRequest('controller_posts/index');
|
||||||
|
|
||||||
$Controller =& new Controller($request);
|
$Controller = new Controller($request);
|
||||||
$Controller->uses = array('ControllerPost');
|
$Controller->uses = array('ControllerPost');
|
||||||
$Controller->request->params['url'] = array();
|
$Controller->request->params['url'] = array();
|
||||||
$Controller->constructClasses();
|
$Controller->constructClasses();
|
||||||
|
@ -1044,7 +1044,7 @@ class ControllerTest extends CakeTestCase {
|
||||||
$core[0]
|
$core[0]
|
||||||
)
|
)
|
||||||
), true);
|
), true);
|
||||||
$Controller =& new Controller($this->getMock('CakeRequest'));
|
$Controller = new Controller($this->getMock('CakeRequest'));
|
||||||
$Controller->uses = array();
|
$Controller->uses = array();
|
||||||
$Controller->components = array('Test');
|
$Controller->components = array('Test');
|
||||||
$Controller->constructClasses();
|
$Controller->constructClasses();
|
||||||
|
@ -1408,7 +1408,7 @@ class ControllerTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function testValidateErrorsOnArbitraryModels() {
|
function testValidateErrorsOnArbitraryModels() {
|
||||||
$TestController =& new TestController();
|
$TestController = new TestController();
|
||||||
|
|
||||||
$Post = new ControllerPost();
|
$Post = new ControllerPost();
|
||||||
$Post->validate = array('title' => 'notEmpty');
|
$Post->validate = array('title' => 'notEmpty');
|
||||||
|
|
Loading…
Reference in a new issue