php5 corrections

This commit is contained in:
euromark 2012-02-23 17:27:40 +01:00 committed by mark_story
parent 42762fffa9
commit 973dce916a
5 changed files with 6 additions and 6 deletions

View file

@ -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');

View file

@ -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(

View file

@ -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(

View file

@ -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(

View file

@ -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());
} }