Permalink
Browse files

Fixing missing reference operators in test cases.

  • Loading branch information...
1 parent 3affec5 commit 1ae922cea1406a6c1a790621d3b86b98cbac1e1a @markstory markstory committed Mar 6, 2010
@@ -34,7 +34,7 @@ class ConnectionManagerTest extends CakeTestCase {
* @return void
*/
function setUp() {
- $this->ConnectionManager = ConnectionManager::getInstance();
+ $this->ConnectionManager =& ConnectionManager::getInstance();
}
/**
@@ -1159,7 +1159,7 @@ function testPrefixRoutingAndPlugins() {
* @return void
*/
function testExtensionParsingSetting() {
- $router = Router::getInstance();
+ $router =& Router::getInstance();
$this->assertFalse($this->router->__parseExtensions);
$router->parseExtensions();
@@ -90,7 +90,7 @@ function testValidateAuthKey() {
* @return void
*/
function testHash() {
- $Security = Security::getInstance();
+ $Security =& Security::getInstance();
$_hashType = $Security->hashType;
$key = 'someKey';
@@ -932,7 +932,7 @@ function testNamespaces() {
$expects = '<a:container xmlns:a="http://example.com/a" xmlns:b="http://example.com/b" xmlns:c="http://example.com/c" xmlns:d="http://example.com/d" xmlns:e="http://example.com/e" xmlns:f="http://example.com/f"><b:rule test=""><c:result>value</c:result></b:rule><d:rule test=""><e:result>value</e:result></d:rule></a:container>';
- $_xml = XmlManager::getInstance();
+ $_xml =& XmlManager::getInstance();
$xml->addNamespace('f', 'http://example.com/f');
$result = $xml->toString(array('cdata' => false));
$this->assertEqual($expects, $result);

0 comments on commit 1ae922c

Please sign in to comment.