Fixing missing reference operators in test cases.

This commit is contained in:
Mark Story 2010-03-05 22:06:20 -05:00
parent 3affec58c6
commit 1ae922cea1
4 changed files with 4 additions and 4 deletions

View file

@ -34,7 +34,7 @@ class ConnectionManagerTest extends CakeTestCase {
* @return void
*/
function setUp() {
$this->ConnectionManager = ConnectionManager::getInstance();
$this->ConnectionManager =& ConnectionManager::getInstance();
}
/**

View file

@ -1159,7 +1159,7 @@ class RouterTest extends CakeTestCase {
* @return void
*/
function testExtensionParsingSetting() {
$router = Router::getInstance();
$router =& Router::getInstance();
$this->assertFalse($this->router->__parseExtensions);
$router->parseExtensions();

View file

@ -90,7 +90,7 @@ class SecurityTest extends CakeTestCase {
* @return void
*/
function testHash() {
$Security = Security::getInstance();
$Security =& Security::getInstance();
$_hashType = $Security->hashType;
$key = 'someKey';

View file

@ -932,7 +932,7 @@ class XmlTest extends CakeTestCase {
$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);