Permalink
Browse files

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 e0eb48d25077275bb50a91979966336c1bc48ff7
Showing with 5 additions and 4 deletions.
  1. +1 −0 cake/tests/cases/libs/cache.test.php
  2. +4 −4 cake/tests/cases/libs/cache/apc.test.php
@@ -119,6 +119,7 @@ function testConfigWithLibAndPluginEngines() {
* @return void
*/
function testInvaidConfig() {
+ $this->expectError();
Cache::config('Invalid', array(
'engine' => 'File',
'duration' => '+1 year',
@@ -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.