mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
adding a couple whitespace corrections (trailing tabs, newlines, ..)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7654 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
3459fef98f
commit
cc425a5e0a
7 changed files with 6 additions and 11 deletions
|
@ -268,6 +268,7 @@ class Cache extends Object {
|
|||
if ($duration < 1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$success = $_this->_Engine[$engine]->write($settings['prefix'] . $key, $value, $duration);
|
||||
$settings = $_this->set();
|
||||
return $success;
|
||||
|
|
|
@ -86,9 +86,7 @@ class CacheTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
function testWritingWithConfig() {
|
||||
|
||||
Cache::config('sessions');
|
||||
|
||||
Cache::write('test_somthing', 'this is the test data', 'tests');
|
||||
|
||||
$expected = array(
|
||||
|
|
3
cake/tests/cases/libs/cache/file.test.php
vendored
3
cake/tests/cases/libs/cache/file.test.php
vendored
|
@ -98,11 +98,8 @@ class FileEngineTest extends CakeTestCase {
|
|||
|
||||
$data = 'this is a test of the emergency broadcasting system';
|
||||
$result = Cache::write('test', $data, 1);
|
||||
|
||||
$this->assertTrue($result);
|
||||
$this->assertTrue(file_exists(CACHE . 'cake_test'));
|
||||
|
||||
|
||||
$result = Cache::read('test');
|
||||
$expecting = $data;
|
||||
$this->assertEqual($result, $expecting);
|
||||
|
|
|
@ -78,7 +78,6 @@ class TestManager {
|
|||
$manager =& new TestManager();
|
||||
|
||||
$testCases =& $manager->_getTestFileList($manager->_getTestsPath());
|
||||
|
||||
if ($manager->appTest) {
|
||||
$test =& new GroupTest('All App Tests');
|
||||
} else if ($manager->pluginTest) {
|
||||
|
|
Loading…
Add table
Reference in a new issue