Skip to content

Commit

Permalink
Fixing missing reference operators in test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 6, 2010
1 parent 3affec5 commit 1ae922c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/model/connection_manager.test.php
Expand Up @@ -34,7 +34,7 @@ class ConnectionManagerTest extends CakeTestCase {
* @return void
*/
function setUp() {
$this->ConnectionManager = ConnectionManager::getInstance();
$this->ConnectionManager =& ConnectionManager::getInstance();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/router.test.php
Expand Up @@ -1159,7 +1159,7 @@ function testPrefixRoutingAndPlugins() {
* @return void
*/
function testExtensionParsingSetting() {
$router = Router::getInstance();
$router =& Router::getInstance();
$this->assertFalse($this->router->__parseExtensions);

$router->parseExtensions();
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/security.test.php
Expand Up @@ -90,7 +90,7 @@ function testValidateAuthKey() {
* @return void
*/
function testHash() {
$Security = Security::getInstance();
$Security =& Security::getInstance();
$_hashType = $Security->hashType;

$key = 'someKey';
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/xml.test.php
Expand Up @@ -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);
Expand Down

0 comments on commit 1ae922c

Please sign in to comment.