mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
php5 corrections
This commit is contained in:
parent
42762fffa9
commit
973dce916a
5 changed files with 6 additions and 6 deletions
|
@ -170,7 +170,7 @@ class MemcacheEngineTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testParseServerStringUnix() {
|
||||
$Memcache =& new TestMemcacheEngine();
|
||||
$Memcache = new TestMemcacheEngine();
|
||||
$result = $Memcache->parseServerString('unix:///path/to/memcached.sock');
|
||||
$this->assertEquals($result, array('unix:///path/to/memcached.sock', 0));
|
||||
}
|
||||
|
@ -385,7 +385,7 @@ class MemcacheEngineTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testLongDurationEqualToZero() {
|
||||
$memcache =& new TestMemcacheEngine();
|
||||
$memcache = new TestMemcacheEngine();
|
||||
$memcache->settings['compress'] = false;
|
||||
|
||||
$mock = $this->getMock('Memcache');
|
||||
|
|
|
@ -862,7 +862,7 @@ class PaginatorComponentTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testPaginateOrderVirtualFieldSharedWithRealField() {
|
||||
$Controller =& new Controller($this->request);
|
||||
$Controller = new Controller($this->request);
|
||||
$Controller->uses = array('PaginatorControllerPost', 'PaginatorControllerComment');
|
||||
$Controller->constructClasses();
|
||||
$Controller->PaginatorControllerComment->virtualFields = array(
|
||||
|
|
|
@ -66,7 +66,7 @@ class TranslateBehaviorTest extends CakeTestCase {
|
|||
public function testCountWithConditions() {
|
||||
$this->loadFixtures('Translate', 'TranslatedItem');
|
||||
|
||||
$Model =& new TranslatedItem();
|
||||
$Model = new TranslatedItem();
|
||||
$Model->locale = 'eng';
|
||||
$result = $Model->find('count', array(
|
||||
'conditions' => array(
|
||||
|
|
|
@ -242,7 +242,7 @@ class ModelIntegrationTest extends BaseModelTest {
|
|||
*/
|
||||
public function testFindWithJoinsOption() {
|
||||
$this->loadFixtures('Article', 'User');
|
||||
$TestUser =& new User();
|
||||
$TestUser = new User();
|
||||
|
||||
$options = array(
|
||||
'fields' => array(
|
||||
|
|
|
@ -434,7 +434,7 @@ class FileTest extends CakeTestCase {
|
|||
if (!file_exists($tmpFile)) {
|
||||
touch($tmpFile);
|
||||
}
|
||||
$File =& new File($tmpFile);
|
||||
$File = new File($tmpFile);
|
||||
$File->read();
|
||||
$this->assertTrue($File->delete());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue