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:
DarkAngelBGE 2008-09-24 11:52:29 +00:00
parent 3459fef98f
commit cc425a5e0a
7 changed files with 6 additions and 11 deletions

View file

@ -268,6 +268,7 @@ class Cache extends Object {
if ($duration < 1) { if ($duration < 1) {
return false; return false;
} }
$success = $_this->_Engine[$engine]->write($settings['prefix'] . $key, $value, $duration); $success = $_this->_Engine[$engine]->write($settings['prefix'] . $key, $value, $duration);
$settings = $_this->set(); $settings = $_this->set();
return $success; return $success;

View file

@ -86,9 +86,7 @@ class CacheTest extends CakeTestCase {
* @return void * @return void
*/ */
function testWritingWithConfig() { function testWritingWithConfig() {
Cache::config('sessions'); Cache::config('sessions');
Cache::write('test_somthing', 'this is the test data', 'tests'); Cache::write('test_somthing', 'this is the test data', 'tests');
$expected = array( $expected = array(

View file

@ -98,11 +98,8 @@ class FileEngineTest extends CakeTestCase {
$data = 'this is a test of the emergency broadcasting system'; $data = 'this is a test of the emergency broadcasting system';
$result = Cache::write('test', $data, 1); $result = Cache::write('test', $data, 1);
$this->assertTrue($result);
$this->assertTrue(file_exists(CACHE . 'cake_test')); $this->assertTrue(file_exists(CACHE . 'cake_test'));
$result = Cache::read('test'); $result = Cache::read('test');
$expecting = $data; $expecting = $data;
$this->assertEqual($result, $expecting); $this->assertEqual($result, $expecting);

View file

@ -78,7 +78,6 @@ class TestManager {
$manager =& new TestManager(); $manager =& new TestManager();
$testCases =& $manager->_getTestFileList($manager->_getTestsPath()); $testCases =& $manager->_getTestFileList($manager->_getTestsPath());
if ($manager->appTest) { if ($manager->appTest) {
$test =& new GroupTest('All App Tests'); $test =& new GroupTest('All App Tests');
} else if ($manager->pluginTest) { } else if ($manager->pluginTest) {