Fixing typo in Cache doc block.

Updating formatting in Xcache doc block.
Fixing Xcache test case so it passes when username and password are not user & password.
This commit is contained in:
mark_story 2009-11-21 15:19:11 -05:00
parent a33bd1d144
commit b1c89496c5
3 changed files with 15 additions and 11 deletions

View file

@ -468,7 +468,7 @@ class CacheEngine {
var $settings = array();
/**
* Iitialize the cache engine
* Initialize the cache engine
*
* Called automatically by the cache frontend
*

View file

@ -29,9 +29,10 @@
class XcacheEngine extends CacheEngine {
/**
* settings
* PHP_AUTH_USER = xcache.admin.user, default cake
* PHP_AUTH_PW = xcache.admin.password, default cake
* Settings
*
* - PHP_AUTH_USER = xcache.admin.user, default cake
* - PHP_AUTH_PW = xcache.admin.password, default cake
*
* @var array
* @access public

View file

@ -76,13 +76,16 @@ class XcacheEngineTest extends UnitTestCase {
*/
function testSettings() {
$settings = Cache::settings();
$expecting = array('prefix' => 'cake_',
$expecting = array(
'prefix' => 'cake_',
'duration'=> 3600,
'probability' => 100,
'engine' => 'Xcache',
'PHP_AUTH_USER' => 'user',
'PHP_AUTH_PW' => 'password',
);
$this->assertTrue(isset($settings['PHP_AUTH_USER']));
$this->assertTrue(isset($settings['PHP_AUTH_PW']));
unset($settings['PHP_AUTH_USER'], $settings['PHP_AUTH_PW']);
$this->assertEqual($settings, $expecting);
}