Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

php5 corrections

  • Loading branch information...
commit 973dce916ad396f3e63ce061137db59ee63afde3 1 parent 42762ff
Mark S. dereuromark authored markstory committed
4 lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
View
@@ -170,7 +170,7 @@ public function testParseServerStringNonLatin() {
* @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 @@ public function testZeroDuration() {
* @return void
*/
public function testLongDurationEqualToZero() {
- $memcache =& new TestMemcacheEngine();
+ $memcache = new TestMemcacheEngine();
$memcache->settings['compress'] = false;
$mock = $this->getMock('Memcache');
2  lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
View
@@ -862,7 +862,7 @@ public function testPaginateMaxLimit() {
* @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(
2  lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php
View
@@ -66,7 +66,7 @@ public function tearDown() {
public function testCountWithConditions() {
$this->loadFixtures('Translate', 'TranslatedItem');
- $Model =& new TranslatedItem();
+ $Model = new TranslatedItem();
$Model->locale = 'eng';
$result = $Model->find('count', array(
'conditions' => array(
2  lib/Cake/Test/Case/Model/ModelIntegrationTest.php
View
@@ -242,7 +242,7 @@ public function testDynamicBehaviorAttachment() {
*/
public function testFindWithJoinsOption() {
$this->loadFixtures('Article', 'User');
- $TestUser =& new User();
+ $TestUser = new User();
$options = array(
'fields' => array(
2  lib/Cake/Test/Case/Utility/FileTest.php
View
@@ -434,7 +434,7 @@ public function testDeleteAfterRead() {
if (!file_exists($tmpFile)) {
touch($tmpFile);
}
- $File =& new File($tmpFile);
+ $File = new File($tmpFile);
$File->read();
$this->assertTrue($File->delete());
}
Please sign in to comment.
Something went wrong with that request. Please try again.