function setUp()
{
- $ctl =& Ethna_Controller::getInstance();
- $this->ctl =& $ctl;
+ $ctl = Ethna_Controller::getInstance();
+ $this->ctl = $ctl;
$config = $ctl->getConfig();
)
));
- $plugin =& $ctl->getPlugin();
+ $plugin = $ctl->getPlugin();
$this->cm = $plugin->getPlugin('Cachemanager', 'Localfile');
}
function testCachemanagerLocalfileConfig()
{
- $this->assertEqual('miyazakiaoi', array_shift(array_slice(explode('/', $this->cm->_getCacheDir('test', 'int_key')), -4, 1)));
- $this->assertEqual('default', array_shift(array_slice(explode('/', $this->cm->_getCacheDir('', 'string_key')), -4, 1)));
+ $array = array_slice(explode('/', $this->cm->_getCacheDir('test', 'int_key')), -4, 1);
+ $this->assertEqual('miyazakiaoi', array_shift($array));
+
+ $array = array_slice(explode('/', $this->cm->_getCacheDir('', 'string_key')), -4, 1);
+ $this->assertEqual('default', array_shift($array));
}
function testCachemanagerLocalfileNamespace()
// オブジェクトのキャッシュ
$object_key = 'object_key';
- $object_value =& $this->cm;
+ $object_value = $this->cm;
$this->cm->set($object_key, $object_value);
$this->assertTrue($this->cm->isCached($object_key));