Skip to content

Commit

Permalink
Removing php5 visibility keywords.
Browse files Browse the repository at this point in the history
Fixing increment count tests in xcache test.
  • Loading branch information
markstory committed Jan 21, 2010
1 parent 47c7387 commit ff7e906
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions cake/tests/cases/libs/cache/xcache.test.php
Expand Up @@ -180,7 +180,7 @@ function testClearCache() {
* @access public
* @return void
*/
public function testDecrement() {
function testDecrement() {
$result = Cache::write('test_decrement', 5);
$this->assertTrue($result);

Expand All @@ -195,7 +195,6 @@ public function testDecrement() {

$result = Cache::read('test_decrement');
$this->assertEqual(2, $result);

}

/**
Expand All @@ -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.