Permalink
Browse files

Removing php5 visibility keywords.

Fixing increment count tests in xcache test.
  • Loading branch information...
1 parent 47c7387 commit ff7e906ba2f3046892fcb56c5ee7c957a468ba41 @markstory markstory committed Jan 21, 2010
Showing with 6 additions and 7 deletions.
  1. +6 −7 cake/tests/cases/libs/cache/xcache.test.php
@@ -180,7 +180,7 @@ function testClearCache() {
* @access public
* @return void
*/
- public function testDecrement() {
+ function testDecrement() {
$result = Cache::write('test_decrement', 5);
$this->assertTrue($result);
@@ -195,7 +195,6 @@ public function testDecrement() {
$result = Cache::read('test_decrement');
$this->assertEqual(2, $result);
-
}
/**
@@ -204,21 +203,21 @@ public function testDecrement() {
* @access public
* @return void
*/
- public function testIncrement() {
+ function testIncrement() {
$result = Cache::write('test_increment', 5);
$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 ff7e906

Please sign in to comment.