Kaynağa Gözat

[ZF-7498]Line endings in Zend/Cache

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17443 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 yıl önce
ebeveyn
işleme
2cf44891fd

+ 102 - 102
tests/Zend/Cache/ZendServerDiskTest.php

@@ -1,102 +1,102 @@
-<?php
-/**
- * @package    Zend_Cache
- * @subpackage UnitTests
- */
-
- /**
- * Zend_Cache
- */
-require_once 'Zend/Cache.php';
-require_once 'Zend/Cache/Backend/ZendServer/Disk.php';
-
-/**
- * Common tests for backends
- */
-require_once 'CommonBackendTest.php';
-
-/**
- * PHPUnit test case
- */
-require_once 'PHPUnit/Framework/TestCase.php';
-
-/**
- * @package    Zend_Cache
- * @subpackage UnitTests
- */
-class Zend_Cache_ZendServerDiskTest extends Zend_Cache_CommonBackendTest {
-
-    protected $_instance;
-
-    public function __construct($name = null, array $data = array(), $dataName = '')
-    {
-        parent::__construct('Zend_Cache_Backend_ZendServer_Disk', $data, $dataName);
-    }
-
-    public function setUp($notag = true)
-    {
-        $this->_instance = new Zend_Cache_Backend_ZendServer_Disk();
-        parent::setUp(true);
-    }
-
-    public function tearDown()
-    {
-        parent::tearDown();
-        unset($this->_instance);
-    }
-
-    public function testConstructorCorrectCall()
-    {
-        $test = new Zend_Cache_Backend_ZendServer_Disk();
-    }
-
-    public function testCleanModeOld() {
-        $this->_instance->setDirectives(array('logging' => false));
-        $this->_instance->clean('old');
-        // do nothing, just to see if an error occured
-        $this->_instance->setDirectives(array('logging' => true));
-    }
-
-    public function testCleanModeMatchingTags() {
-        $this->_instance->setDirectives(array('logging' => false));
-        $this->_instance->clean('matchingTag', array('tag1'));
-        // do nothing, just to see if an error occured
-        $this->_instance->setDirectives(array('logging' => true));
-    }
-
-    public function testCleanModeNotMatchingTags() {
-        $this->_instance->setDirectives(array('logging' => false));
-        $this->_instance->clean('notMatchingTag', array('tag1'));
-        // do nothing, just to see if an error occured
-        $this->_instance->setDirectives(array('logging' => true));
-    }
-
-    // Because of limitations of this backend...
-    public function testGetWithAnExpiredCacheId() {}
-    public function testCleanModeMatchingTags2() {}
-    public function testCleanModeNotMatchingTags2() {}
-    public function testCleanModeNotMatchingTags3() {}
-    public function testSaveCorrectCall()
-    {
-        $this->_instance->setDirectives(array('logging' => false));
-        parent::testSaveCorrectCall();
-        $this->_instance->setDirectives(array('logging' => true));
-    }
-
-    public function testSaveWithNullLifeTime()
-    {
-        $this->_instance->setDirectives(array('logging' => false));
-        parent::testSaveWithNullLifeTime();
-        $this->_instance->setDirectives(array('logging' => true));
-    }
-
-    public function testSaveWithSpecificLifeTime()
-    {
-
-        $this->_instance->setDirectives(array('logging' => false));
-        parent::testSaveWithSpecificLifeTime();
-        $this->_instance->setDirectives(array('logging' => true));
-    }
-
-}
-
+<?php
+/**
+ * @package    Zend_Cache
+ * @subpackage UnitTests
+ */
+
+/**
+ * Zend_Cache
+ */
+require_once 'Zend/Cache.php';
+require_once 'Zend/Cache/Backend/ZendServer/Disk.php';
+
+/**
+ * Common tests for backends
+ */
+require_once 'CommonBackendTest.php';
+
+/**
+ * PHPUnit test case
+ */
+require_once 'PHPUnit/Framework/TestCase.php';
+
+/**
+ * @package    Zend_Cache
+ * @subpackage UnitTests
+ */
+class Zend_Cache_ZendServerDiskTest extends Zend_Cache_CommonBackendTest {
+
+    protected $_instance;
+
+    public function __construct($name = null, array $data = array(), $dataName = '')
+    {
+        parent::__construct('Zend_Cache_Backend_ZendServer_Disk', $data, $dataName);
+    }
+
+    public function setUp($notag = true)
+    {
+        $this->_instance = new Zend_Cache_Backend_ZendServer_Disk();
+        parent::setUp(true);
+    }
+
+    public function tearDown()
+    {
+        parent::tearDown();
+        unset($this->_instance);
+    }
+
+    public function testConstructorCorrectCall()
+    {
+        $test = new Zend_Cache_Backend_ZendServer_Disk();
+    }
+
+    public function testCleanModeOld() {
+        $this->_instance->setDirectives(array('logging' => false));
+        $this->_instance->clean('old');
+        // do nothing, just to see if an error occured
+        $this->_instance->setDirectives(array('logging' => true));
+    }
+
+    public function testCleanModeMatchingTags() {
+        $this->_instance->setDirectives(array('logging' => false));
+        $this->_instance->clean('matchingTag', array('tag1'));
+        // do nothing, just to see if an error occured
+        $this->_instance->setDirectives(array('logging' => true));
+    }
+
+    public function testCleanModeNotMatchingTags() {
+        $this->_instance->setDirectives(array('logging' => false));
+        $this->_instance->clean('notMatchingTag', array('tag1'));
+        // do nothing, just to see if an error occured
+        $this->_instance->setDirectives(array('logging' => true));
+    }
+
+    // Because of limitations of this backend...
+    public function testGetWithAnExpiredCacheId() {}
+    public function testCleanModeMatchingTags2() {}
+    public function testCleanModeNotMatchingTags2() {}
+    public function testCleanModeNotMatchingTags3() {}
+    public function testSaveCorrectCall()
+    {
+        $this->_instance->setDirectives(array('logging' => false));
+        parent::testSaveCorrectCall();
+        $this->_instance->setDirectives(array('logging' => true));
+    }
+
+    public function testSaveWithNullLifeTime()
+    {
+        $this->_instance->setDirectives(array('logging' => false));
+        parent::testSaveWithNullLifeTime();
+        $this->_instance->setDirectives(array('logging' => true));
+    }
+
+    public function testSaveWithSpecificLifeTime()
+    {
+
+        $this->_instance->setDirectives(array('logging' => false));
+        parent::testSaveWithSpecificLifeTime();
+        $this->_instance->setDirectives(array('logging' => true));
+    }
+
+}
+

+ 101 - 101
tests/Zend/Cache/ZendServerShMemTest.php

@@ -1,101 +1,101 @@
-<?php
-/**
- * @package    Zend_Cache
- * @subpackage UnitTests
- */
-
- /**
- * Zend_Cache
- */
-require_once 'Zend/Cache.php';
-require_once 'Zend/Cache/Backend/ZendServer/ShMem.php';
-
-/**
- * Common tests for backends
- */
-require_once 'CommonBackendTest.php';
-
-/**
- * PHPUnit test case
- */
-require_once 'PHPUnit/Framework/TestCase.php';
-
-/**
- * @package    Zend_Cache
- * @subpackage UnitTests
- */
-class Zend_Cache_ZendServerShMemTest extends Zend_Cache_CommonBackendTest {
-
-    protected $_instance;
-
-    public function __construct($name = null, array $data = array(), $dataName = '')
-    {
-        parent::__construct('Zend_Cache_Backend_ZendServer_Disk', $data, $dataName);
-    }
-
-    public function setUp($notag = true)
-    {
-        $this->_instance = new Zend_Cache_Backend_ZendServer_ShMem();
-        parent::setUp(true);
-    }
-
-    public function tearDown()
-    {
-        parent::tearDown();
-        unset($this->_instance);
-    }
-
-    public function testConstructorCorrectCall()
-    {
-        $test = new Zend_Cache_Backend_ZendServer_ShMem();
-    }
-
-    public function testCleanModeOld() {
-        $this->_instance->setDirectives(array('logging' => false));
-        $this->_instance->clean('old');
-        // do nothing, just to see if an error occured
-        $this->_instance->setDirectives(array('logging' => true));
-    }
-
-    public function testCleanModeMatchingTags() {
-        $this->_instance->setDirectives(array('logging' => false));
-        $this->_instance->clean('matchingTag', array('tag1'));
-        // do nothing, just to see if an error occured
-        $this->_instance->setDirectives(array('logging' => true));
-    }
-
-    public function testCleanModeNotMatchingTags() {
-        $this->_instance->setDirectives(array('logging' => false));
-        $this->_instance->clean('notMatchingTag', array('tag1'));
-        // do nothing, just to see if an error occured
-        $this->_instance->setDirectives(array('logging' => true));
-    }
-
-    // Because of limitations of this backend...
-    public function testGetWithAnExpiredCacheId() {}
-    public function testCleanModeMatchingTags2() {}
-    public function testCleanModeNotMatchingTags2() {}
-    public function testCleanModeNotMatchingTags3() {}
-    public function testSaveCorrectCall()
-    {
-        $this->_instance->setDirectives(array('logging' => false));
-        parent::testSaveCorrectCall();
-        $this->_instance->setDirectives(array('logging' => true));
-    }
-
-    public function testSaveWithNullLifeTime()
-    {
-        $this->_instance->setDirectives(array('logging' => false));
-        parent::testSaveWithNullLifeTime();
-        $this->_instance->setDirectives(array('logging' => true));
-    }
-
-    public function testSaveWithSpecificLifeTime()
-    {
-
-        $this->_instance->setDirectives(array('logging' => false));
-        parent::testSaveWithSpecificLifeTime();
-        $this->_instance->setDirectives(array('logging' => true));
-    }
-}
-
+<?php
+/**
+ * @package    Zend_Cache
+ * @subpackage UnitTests
+ */
+
+/**
+ * Zend_Cache
+ */
+require_once 'Zend/Cache.php';
+require_once 'Zend/Cache/Backend/ZendServer/ShMem.php';
+
+/**
+ * Common tests for backends
+ */
+require_once 'CommonBackendTest.php';
+
+/**
+ * PHPUnit test case
+ */
+require_once 'PHPUnit/Framework/TestCase.php';
+
+/**
+ * @package    Zend_Cache
+ * @subpackage UnitTests
+ */
+class Zend_Cache_ZendServerShMemTest extends Zend_Cache_CommonBackendTest {
+
+    protected $_instance;
+
+    public function __construct($name = null, array $data = array(), $dataName = '')
+    {
+        parent::__construct('Zend_Cache_Backend_ZendServer_Disk', $data, $dataName);
+    }
+
+    public function setUp($notag = true)
+    {
+        $this->_instance = new Zend_Cache_Backend_ZendServer_ShMem();
+        parent::setUp(true);
+    }
+
+    public function tearDown()
+    {
+        parent::tearDown();
+        unset($this->_instance);
+    }
+
+    public function testConstructorCorrectCall()
+    {
+        $test = new Zend_Cache_Backend_ZendServer_ShMem();
+    }
+
+    public function testCleanModeOld() {
+        $this->_instance->setDirectives(array('logging' => false));
+        $this->_instance->clean('old');
+        // do nothing, just to see if an error occured
+        $this->_instance->setDirectives(array('logging' => true));
+    }
+
+    public function testCleanModeMatchingTags() {
+        $this->_instance->setDirectives(array('logging' => false));
+        $this->_instance->clean('matchingTag', array('tag1'));
+        // do nothing, just to see if an error occured
+        $this->_instance->setDirectives(array('logging' => true));
+    }
+
+    public function testCleanModeNotMatchingTags() {
+        $this->_instance->setDirectives(array('logging' => false));
+        $this->_instance->clean('notMatchingTag', array('tag1'));
+        // do nothing, just to see if an error occured
+        $this->_instance->setDirectives(array('logging' => true));
+    }
+
+    // Because of limitations of this backend...
+    public function testGetWithAnExpiredCacheId() {}
+    public function testCleanModeMatchingTags2() {}
+    public function testCleanModeNotMatchingTags2() {}
+    public function testCleanModeNotMatchingTags3() {}
+    public function testSaveCorrectCall()
+    {
+        $this->_instance->setDirectives(array('logging' => false));
+        parent::testSaveCorrectCall();
+        $this->_instance->setDirectives(array('logging' => true));
+    }
+
+    public function testSaveWithNullLifeTime()
+    {
+        $this->_instance->setDirectives(array('logging' => false));
+        parent::testSaveWithNullLifeTime();
+        $this->_instance->setDirectives(array('logging' => true));
+    }
+
+    public function testSaveWithSpecificLifeTime()
+    {
+
+        $this->_instance->setDirectives(array('logging' => false));
+        parent::testSaveWithSpecificLifeTime();
+        $this->_instance->setDirectives(array('logging' => true));
+    }
+}
+