Skip to content

Commit

Permalink
Updating ApcEngine test to use the new Cache engine api.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 21, 2009
1 parent 5ff2e66 commit 3f067ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cake/tests/cases/libs/cache/apc.test.php
Expand Up @@ -39,7 +39,7 @@ class ApcEngineTest extends UnitTestCase {
*/
function skip() {
$skip = true;
if (Cache::engine('Apc')) {
if (function_exists('apc_store')) {
$skip = false;
}
$this->skipIf($skip, '%s Apc is not installed or configured properly');
Expand All @@ -65,6 +65,7 @@ function setUp() {
*/
function tearDown() {
Configure::write('Cache.disable', $this->_cacheDisable);
Cache::drop('apc');
Cache::config('default');
}

Expand Down Expand Up @@ -112,7 +113,7 @@ function testExpiry() {
$result = Cache::read('other_test');
$this->assertFalse($result);

Cache::set(array('duration' => "+1 second"));
Cache::set(array('duration' => 1));

$data = 'this is a test of the emergency broadcasting system';
$result = Cache::write('other_test', $data);
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/cache/memcache.test.php
Expand Up @@ -40,7 +40,7 @@ function skip() {
if (class_exists('Memcache')) {
$skip = false;
}
$this->skipIf($skip, '%s Memcache is not installed or configured properly');
$this->skipIf($skip, '%s Memcache is not installed or configured properly.');
}

/**
Expand Down

0 comments on commit 3f067ed

Please sign in to comment.