Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding expectError to catch errors coming from FileEngine.
Fixing incorrect tests in ApcTest.
  • Loading branch information
markstory committed Feb 28, 2010
1 parent 75e9838 commit e0eb48d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions cake/tests/cases/libs/cache.test.php
Expand Up @@ -119,6 +119,7 @@ function testConfigWithLibAndPluginEngines() {
* @return void
*/
function testInvaidConfig() {
$this->expectError();
Cache::config('Invalid', array(
'engine' => 'File',
'duration' => '+1 year',
Expand Down
8 changes: 4 additions & 4 deletions cake/tests/cases/libs/cache/apc.test.php
Expand Up @@ -182,16 +182,16 @@ function testIncrement() {
$this->assertTrue($result);

$result = Cache::increment('test_increment');
$this->assertEqual(5, $result);
$this->assertEqual(6, $result);

$result = Cache::read('test_increment');
$this->assertEqual(5, $result);
$this->assertEqual(6, $result);

$result = Cache::increment('test_increment', 2);
$this->assertEqual(7, $result);
$this->assertEqual(8, $result);

$result = Cache::read('test_increment');
$this->assertEqual(7, $result);
$this->assertEqual(8, $result);
}
}
?>

0 comments on commit e0eb48d

Please sign in to comment.