mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing missing reference operators in test cases.
This commit is contained in:
parent
3affec58c6
commit
1ae922cea1
4 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,7 @@ class ConnectionManagerTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function setUp() {
|
||||
$this->ConnectionManager = ConnectionManager::getInstance();
|
||||
$this->ConnectionManager =& ConnectionManager::getInstance();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -90,7 +90,7 @@ class SecurityTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testHash() {
|
||||
$Security = Security::getInstance();
|
||||
$Security =& Security::getInstance();
|
||||
$_hashType = $Security->hashType;
|
||||
|
||||
$key = 'someKey';
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue