mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Skiping ApcCache test if APC is not installed
This commit is contained in:
parent
b52f78297f
commit
0a1bc06843
1 changed files with 1 additions and 14 deletions
15
cake/tests/cases/libs/cache/apc.test.php
vendored
15
cake/tests/cases/libs/cache/apc.test.php
vendored
|
@ -29,20 +29,6 @@ if (!class_exists('Cache')) {
|
|||
*/
|
||||
class ApcEngineTest extends CakeTestCase {
|
||||
|
||||
/**
|
||||
* skip method
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function skip() {
|
||||
$skip = true;
|
||||
if (function_exists('apc_store')) {
|
||||
$skip = false;
|
||||
}
|
||||
$this->skipIf($skip, '%s Apc is not installed or configured properly');
|
||||
}
|
||||
|
||||
/**
|
||||
* setUp method
|
||||
*
|
||||
|
@ -50,6 +36,7 @@ class ApcEngineTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function setUp() {
|
||||
$this->skipIf(!function_exists('apc_store'), '%s Apc is not installed or configured properly');
|
||||
$this->_cacheDisable = Configure::read('Cache.disable');
|
||||
Configure::write('Cache.disable', false);
|
||||
Cache::config('apc', array('engine' => 'Apc', 'prefix' => 'cake_'));
|
||||
|
|
Loading…
Reference in a new issue