diff options
author | xue <> | 2006-07-07 14:54:15 +0000 |
---|---|---|
committer | xue <> | 2006-07-07 14:54:15 +0000 |
commit | 61bb16ee2e5f0a66234e1575242169a10fde47b5 (patch) | |
tree | 3ee24dcc36ceae2c213130df1ea3d5c9fc110a27 /tests/UnitTests/framework/Data/utAPCCache.php | |
parent | 7b84938b1b5964f2274d66e28ba17435924ffe35 (diff) |
Merge from 3.0 branch till 1253.
Diffstat (limited to 'tests/UnitTests/framework/Data/utAPCCache.php')
-rw-r--r-- | tests/UnitTests/framework/Data/utAPCCache.php | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/UnitTests/framework/Data/utAPCCache.php b/tests/UnitTests/framework/Data/utAPCCache.php deleted file mode 100644 index 48458c27..00000000 --- a/tests/UnitTests/framework/Data/utAPCCache.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php
-
-require_once(dirname(__FILE__).'/../common.php');
-require_once(dirname(__FILE__).'/CacheTestCase.php');
-Prado::using('System.Caching.TAPCCache');
-
-class utAPCCache extends CacheTestCase
-{
-
- public function testInit()
- {
- if(!extension_loaded('apc'))
- {
- $this->fail('TAPCCache is not tested. PHP extension "apc" is required by TAPCCache.');
- return;
- }
- //compatibility test as this time of writing 01/02/2006 (dd//mm//yyyy)
- $apc_default_ini = $apc_default=ini_get('apc.cache_by_default');
- if ($apc_default=='Off' || $apc_default='off')
- $apc_default=0;
- elseif($apc_default=='On' || $apc_default='on')
- $apc_default=1;
- $apc_default=(boolean)$apc_default;
- if($apc_default) {
- $this->fail('You have to disable apc.cache_by_default in your php.ini : you have apc.cache_by_default='.$apc_default_ini.' but currently prado won\'t execute without errors with APC caching all prado php files.');
- return;
- }
- }
-
- public function testBasicOperations()
- {
- if(!extension_loaded('apc'))
- {
- $this->fail('TAPCCache is not tested. PHP extension "apc" is required by TAPCCache.');
- return;
- }
- $cache=new TAPCCache;
- $cache->init(null);
- $this->setCache($cache);
- $this->basicOperations();
- $this->setCache(null);
- }
-}
-
-?>
\ No newline at end of file |