Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding expectError to catch errors coming from FileEngine.

Fixing incorrect tests in ApcTest.
  • Loading branch information...
commit e0eb48d25077275bb50a91979966336c1bc48ff7 1 parent 75e9838
@markstory markstory authored
View
1  cake/tests/cases/libs/cache.test.php
@@ -119,6 +119,7 @@ function testConfigWithLibAndPluginEngines() {
* @return void
*/
function testInvaidConfig() {
+ $this->expectError();
Cache::config('Invalid', array(
'engine' => 'File',
'duration' => '+1 year',
View
8 cake/tests/cases/libs/cache/apc.test.php
@@ -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);
}
}
?>
Please sign in to comment.
Something went wrong with that request. Please try again.