From 1ae922cea1406a6c1a790621d3b86b98cbac1e1a Mon Sep 17 00:00:00 2001 From: Mark Story Date: Fri, 5 Mar 2010 22:06:20 -0500 Subject: [PATCH] Fixing missing reference operators in test cases. --- cake/tests/cases/libs/model/connection_manager.test.php | 2 +- cake/tests/cases/libs/router.test.php | 2 +- cake/tests/cases/libs/security.test.php | 2 +- cake/tests/cases/libs/xml.test.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cake/tests/cases/libs/model/connection_manager.test.php b/cake/tests/cases/libs/model/connection_manager.test.php index a4336a28ad2..c13b58f50aa 100644 --- a/cake/tests/cases/libs/model/connection_manager.test.php +++ b/cake/tests/cases/libs/model/connection_manager.test.php @@ -34,7 +34,7 @@ class ConnectionManagerTest extends CakeTestCase { * @return void */ function setUp() { - $this->ConnectionManager = ConnectionManager::getInstance(); + $this->ConnectionManager =& ConnectionManager::getInstance(); } /** diff --git a/cake/tests/cases/libs/router.test.php b/cake/tests/cases/libs/router.test.php index 274ce242c87..99b549cfcb4 100644 --- a/cake/tests/cases/libs/router.test.php +++ b/cake/tests/cases/libs/router.test.php @@ -1159,7 +1159,7 @@ function testPrefixRoutingAndPlugins() { * @return void */ function testExtensionParsingSetting() { - $router = Router::getInstance(); + $router =& Router::getInstance(); $this->assertFalse($this->router->__parseExtensions); $router->parseExtensions(); diff --git a/cake/tests/cases/libs/security.test.php b/cake/tests/cases/libs/security.test.php index 96e9517d05e..fb8d3047893 100644 --- a/cake/tests/cases/libs/security.test.php +++ b/cake/tests/cases/libs/security.test.php @@ -90,7 +90,7 @@ function testValidateAuthKey() { * @return void */ function testHash() { - $Security = Security::getInstance(); + $Security =& Security::getInstance(); $_hashType = $Security->hashType; $key = 'someKey'; diff --git a/cake/tests/cases/libs/xml.test.php b/cake/tests/cases/libs/xml.test.php index 43ccf17a998..435d5b341c9 100644 --- a/cake/tests/cases/libs/xml.test.php +++ b/cake/tests/cases/libs/xml.test.php @@ -932,7 +932,7 @@ function testNamespaces() { $expects = 'valuevalue'; - $_xml = XmlManager::getInstance(); + $_xml =& XmlManager::getInstance(); $xml->addNamespace('f', 'http://example.com/f'); $result = $xml->toString(array('cdata' => false)); $this->assertEqual($expects, $result);