mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Removing php5 visibility keywords.
Fixing increment count tests in xcache test.
This commit is contained in:
parent
47c7387548
commit
ff7e906ba2
1 changed files with 6 additions and 7 deletions
13
cake/tests/cases/libs/cache/xcache.test.php
vendored
13
cake/tests/cases/libs/cache/xcache.test.php
vendored
|
@ -180,7 +180,7 @@ class XcacheEngineTest extends UnitTestCase {
|
||||||
* @access public
|
* @access public
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testDecrement() {
|
function testDecrement() {
|
||||||
$result = Cache::write('test_decrement', 5);
|
$result = Cache::write('test_decrement', 5);
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
|
|
||||||
|
@ -195,7 +195,6 @@ class XcacheEngineTest extends UnitTestCase {
|
||||||
|
|
||||||
$result = Cache::read('test_decrement');
|
$result = Cache::read('test_decrement');
|
||||||
$this->assertEqual(2, $result);
|
$this->assertEqual(2, $result);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -204,21 +203,21 @@ class XcacheEngineTest extends UnitTestCase {
|
||||||
* @access public
|
* @access public
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testIncrement() {
|
function testIncrement() {
|
||||||
$result = Cache::write('test_increment', 5);
|
$result = Cache::write('test_increment', 5);
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
|
|
||||||
$result = Cache::increment('test_increment');
|
$result = Cache::increment('test_increment');
|
||||||
$this->assertEqual(5, $result);
|
$this->assertEqual(6, $result);
|
||||||
|
|
||||||
$result = Cache::read('test_increment');
|
$result = Cache::read('test_increment');
|
||||||
$this->assertEqual(5, $result);
|
$this->assertEqual(6, $result);
|
||||||
|
|
||||||
$result = Cache::increment('test_increment', 2);
|
$result = Cache::increment('test_increment', 2);
|
||||||
$this->assertEqual(7, $result);
|
$this->assertEqual(8, $result);
|
||||||
|
|
||||||
$result = Cache::read('test_increment');
|
$result = Cache::read('test_increment');
|
||||||
$this->assertEqual(7, $result);
|
$this->assertEqual(8, $result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Add table
Reference in a new issue