mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06: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
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testParseServerStringUnix() {
|
public function testParseServerStringUnix() {
|
||||||
$Memcache =& new TestMemcacheEngine();
|
$Memcache = new TestMemcacheEngine();
|
||||||
$result = $Memcache->parseServerString('unix:///path/to/memcached.sock');
|
$result = $Memcache->parseServerString('unix:///path/to/memcached.sock');
|
||||||
$this->assertEquals($result, array('unix:///path/to/memcached.sock', 0));
|
$this->assertEquals($result, array('unix:///path/to/memcached.sock', 0));
|
||||||
}
|
}
|
||||||
|
@ -385,7 +385,7 @@ class MemcacheEngineTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testLongDurationEqualToZero() {
|
public function testLongDurationEqualToZero() {
|
||||||
$memcache =& new TestMemcacheEngine();
|
$memcache = new TestMemcacheEngine();
|
||||||
$memcache->settings['compress'] = false;
|
$memcache->settings['compress'] = false;
|
||||||
|
|
||||||
$mock = $this->getMock('Memcache');
|
$mock = $this->getMock('Memcache');
|
||||||
|
|
|
@ -862,7 +862,7 @@ class PaginatorComponentTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testPaginateOrderVirtualFieldSharedWithRealField() {
|
public function testPaginateOrderVirtualFieldSharedWithRealField() {
|
||||||
$Controller =& new Controller($this->request);
|
$Controller = new Controller($this->request);
|
||||||
$Controller->uses = array('PaginatorControllerPost', 'PaginatorControllerComment');
|
$Controller->uses = array('PaginatorControllerPost', 'PaginatorControllerComment');
|
||||||
$Controller->constructClasses();
|
$Controller->constructClasses();
|
||||||
$Controller->PaginatorControllerComment->virtualFields = array(
|
$Controller->PaginatorControllerComment->virtualFields = array(
|
||||||
|
|
|
@ -66,7 +66,7 @@ class TranslateBehaviorTest extends CakeTestCase {
|
||||||
public function testCountWithConditions() {
|
public function testCountWithConditions() {
|
||||||
$this->loadFixtures('Translate', 'TranslatedItem');
|
$this->loadFixtures('Translate', 'TranslatedItem');
|
||||||
|
|
||||||
$Model =& new TranslatedItem();
|
$Model = new TranslatedItem();
|
||||||
$Model->locale = 'eng';
|
$Model->locale = 'eng';
|
||||||
$result = $Model->find('count', array(
|
$result = $Model->find('count', array(
|
||||||
'conditions' => array(
|
'conditions' => array(
|
||||||
|
|
|
@ -242,7 +242,7 @@ class ModelIntegrationTest extends BaseModelTest {
|
||||||
*/
|
*/
|
||||||
public function testFindWithJoinsOption() {
|
public function testFindWithJoinsOption() {
|
||||||
$this->loadFixtures('Article', 'User');
|
$this->loadFixtures('Article', 'User');
|
||||||
$TestUser =& new User();
|
$TestUser = new User();
|
||||||
|
|
||||||
$options = array(
|
$options = array(
|
||||||
'fields' => array(
|
'fields' => array(
|
||||||
|
|
|
@ -434,7 +434,7 @@ class FileTest extends CakeTestCase {
|
||||||
if (!file_exists($tmpFile)) {
|
if (!file_exists($tmpFile)) {
|
||||||
touch($tmpFile);
|
touch($tmpFile);
|
||||||
}
|
}
|
||||||
$File =& new File($tmpFile);
|
$File = new File($tmpFile);
|
||||||
$File->read();
|
$File->read();
|
||||||
$this->assertTrue($File->delete());
|
$this->assertTrue($File->delete());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue