Fixed MS-DOS line endings
authorErnesto Baschny <ernst@cron-it.de>
Thu, 20 Jan 2011 07:28:06 +0000 (07:28 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Thu, 20 Jan 2011 07:28:06 +0000 (07:28 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10152 709f56b5-9817-0410-a4d7-c38de5d9e867

tests/t3lib/mail/t3lib_mail_swiftmaileradapterTest.php
tests/t3lib/t3lib_lockTest.php

index a078b77..26b8cd5 100644 (file)
@@ -1,90 +1,90 @@
-<?php\r
-/***************************************************************\r
-* Copyright notice\r
-*\r
-* (c) 2011 Ernesto Baschny (ernst@cron-it.de)\r
-* All rights reserved\r
-*\r
-* This script is part of the TYPO3 project. The TYPO3 project is\r
-* free software; you can redistribute it and/or modify\r
-* it under the terms of the GNU General Public License as published by\r
-* the Free Software Foundation; either version 2 of the License, or\r
-* (at your option) any later version.\r
-*\r
-* The GNU General Public License can be found at\r
-* http://www.gnu.org/copyleft/gpl.html.\r
-*\r
-* This script is distributed in the hope that it will be useful,\r
-* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-* GNU General Public License for more details.\r
-*\r
-* This copyright notice MUST APPEAR in all copies of the script!\r
-***************************************************************/\r
-\r
-/**\r
- * Testcase for the t3lib_mail_SwiftMailerAdapter class.\r
- *\r
- * @package TYPO3\r
- * @subpackage t3lib\r
- *\r
- * @author Ernesto Baschny <ernst@cron-it.de>\r
- */\r
-class t3lib_mail_SwiftMailerAdapterTest extends tx_phpunit_testcase {\r
-\r
-       public function setUp() {\r
-               if (!class_exists('t3lib_mail_SwiftMailerAdapterExposed')) {\r
-                       // Make protected methods accessible so that they can be tested:\r
-                       eval('class t3lib_mail_SwiftMailerAdapterExposed extends t3lib_mail_SwiftMailerAdapter {\r
-                               public function parseAddressesExposed($args) {\r
-                                       return $this->parseAddresses($args);\r
-                               }\r
-                       }');\r
-               }\r
-               $this->fixture = new t3lib_mail_SwiftMailerAdapterExposed();\r
-       }\r
-\r
-       public function tearDown() {\r
-       }\r
-\r
-       //////////////////////////\r
-       // Tests concerning mail\r
-       //////////////////////////\r
-\r
-       /**\r
-        * Data provider for parseAddressesTest\r
-        *\r
-        * @return array Data sets\r
-        */\r
-       public static function parseAddressesProvider() {\r
-               return array(\r
-                       'name &ltemail&gt;' => array('name <email@example.org>', array('email@example.org' => 'name')),\r
-                       '&lt;email&gt;' => array('<email@example.org>', array('email@example.org')),\r
-                       'email' => array('email@example.org', array('email@example.org')),\r
-                       'email1,email2' => array('email1@example.org,email2@example.com', array('email1@example.org', 'email2@example.com')),\r
-                       'name &ltemail&gt;,email2' => array('name <email1@example.org>,email2@example.com', array('email1@example.org' => 'name', 'email2@example.com')),\r
-                       '"last, first" &lt;name@example.org&gt;' => array('"last, first" <email@example.org>', array('email@example.org' => '"last, first"')),\r
-                       'email,name &ltemail&gt;,"last, first" &lt;name@example.org&gt;' =>\r
-                               array(\r
-                                       'email1@example.org, name <email2@example.org>, "last, first" <email3@example.org>',\r
-                               array(\r
-                                       'email1@example.org',\r
-                                       'email2@example.org' => 'name',\r
-                                       'email3@example.org' => '"last, first"',\r
-                               )\r
-                       ),\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        * @dataProvider parseAddressesProvider\r
-        */\r
-       public function parseAddressesTest($source, $addressList) {\r
-               $this->assertEquals(\r
-                       $addressList,\r
-                       $this->fixture->parseAddressesExposed($source)\r
-               );\r
-       }\r
-}\r
-?>\r
+<?php
+/***************************************************************
+* Copyright notice
+*
+* (c) 2011 Ernesto Baschny (ernst@cron-it.de)
+* All rights reserved
+*
+* This script is part of the TYPO3 project. The TYPO3 project is
+* free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* The GNU General Public License can be found at
+* http://www.gnu.org/copyleft/gpl.html.
+*
+* This script is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* This copyright notice MUST APPEAR in all copies of the script!
+***************************************************************/
+
+/**
+ * Testcase for the t3lib_mail_SwiftMailerAdapter class.
+ *
+ * @package TYPO3
+ * @subpackage t3lib
+ *
+ * @author Ernesto Baschny <ernst@cron-it.de>
+ */
+class t3lib_mail_SwiftMailerAdapterTest extends tx_phpunit_testcase {
+
+       public function setUp() {
+               if (!class_exists('t3lib_mail_SwiftMailerAdapterExposed')) {
+                       // Make protected methods accessible so that they can be tested:
+                       eval('class t3lib_mail_SwiftMailerAdapterExposed extends t3lib_mail_SwiftMailerAdapter {
+                               public function parseAddressesExposed($args) {
+                                       return $this->parseAddresses($args);
+                               }
+                       }');
+               }
+               $this->fixture = new t3lib_mail_SwiftMailerAdapterExposed();
+       }
+
+       public function tearDown() {
+       }
+
+       //////////////////////////
+       // Tests concerning mail
+       //////////////////////////
+
+       /**
+        * Data provider for parseAddressesTest
+        *
+        * @return array Data sets
+        */
+       public static function parseAddressesProvider() {
+               return array(
+                       'name &ltemail&gt;' => array('name <email@example.org>', array('email@example.org' => 'name')),
+                       '&lt;email&gt;' => array('<email@example.org>', array('email@example.org')),
+                       'email' => array('email@example.org', array('email@example.org')),
+                       'email1,email2' => array('email1@example.org,email2@example.com', array('email1@example.org', 'email2@example.com')),
+                       'name &ltemail&gt;,email2' => array('name <email1@example.org>,email2@example.com', array('email1@example.org' => 'name', 'email2@example.com')),
+                       '"last, first" &lt;name@example.org&gt;' => array('"last, first" <email@example.org>', array('email@example.org' => '"last, first"')),
+                       'email,name &ltemail&gt;,"last, first" &lt;name@example.org&gt;' =>
+                               array(
+                                       'email1@example.org, name <email2@example.org>, "last, first" <email3@example.org>',
+                               array(
+                                       'email1@example.org',
+                                       'email2@example.org' => 'name',
+                                       'email3@example.org' => '"last, first"',
+                               )
+                       ),
+               );
+       }
+
+       /**
+        * @test
+        * @dataProvider parseAddressesProvider
+        */
+       public function parseAddressesTest($source, $addressList) {
+               $this->assertEquals(
+                       $addressList,
+                       $this->fixture->parseAddressesExposed($source)
+               );
+       }
+}
+?>
index d124092..65305ca 100644 (file)
@@ -1,77 +1,77 @@
-<?php\r
-/***************************************************************\r
- *  Copyright notice\r
- *\r
- *  (c) 2010-2011 Christian Kuhn <lolli@schwarzbu.ch>\r
- *  All rights reserved\r
- *\r
- *  This script is part of the TYPO3 project. The TYPO3 project is\r
- *  free software; you can redistribute it and/or modify\r
- *  it under the terms of the GNU General Public License as published by\r
- *  the Free Software Foundation; either version 2 of the License, or\r
- *  (at your option) any later version.\r
- *\r
- *  The GNU General Public License can be found at\r
- *  http://www.gnu.org/copyleft/gpl.html.\r
- *\r
- *  This script is distributed in the hope that it will be useful,\r
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- *  GNU General Public License for more details.\r
- *\r
- *  This copyright notice MUST APPEAR in all copies of the script!\r
- ***************************************************************/\r
-\r
-/**\r
- * Testcase for t3lib_lock\r
- *\r
- * @author Christian Kuhn <lolli@schwarzbu.ch>\r
- *\r
- * @package TYPO3\r
- * @subpackage t3lib\r
- */\r
-\r
-class t3lib_lockTest extends tx_phpunit_testcase {\r
-\r
-       /**\r
-        * Enable backup of global and system variables\r
-        *\r
-        * @var boolean\r
-        */\r
-       protected $backupGlobals = TRUE;\r
-       \r
-       /**\r
-        * Exclude TYPO3_DB from backup/ restore of $GLOBALS\r
-        * because resource types cannot be handled during serializing\r
-        *\r
-        * @var array\r
-        */\r
-       protected $backupGlobalsBlacklist = array('TYPO3_DB');\r
-\r
-       ///////////////////////////////\r
-       // tests concerning acquire\r
-       ///////////////////////////////a\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function acquireFixesPermissionsOnLockFileIfUsingSimpleLogging() {\r
-               if (TYPO3_OS == 'WIN') {\r
-                       $this->markTestSkipped('acquireFixesPermissionsOnLockFileIfUsingSimpleLogging() test not available on Windows.');\r
-               }\r
-\r
-                       // Use a very high id to be unique\r
-               $instance = new t3lib_lock(999999999, 'simple');\r
-               $pathOfLockFile = $instance->getResource();\r
-               $GLOBALS['TYPO3_CONF_VARS']['BE']['fileCreateMask'] = '0777';\r
-\r
-                       // Acquire lock, get actual file permissions and clean up\r
-               $instance->acquire();\r
-               clearstatcache();\r
-               $resultFilePermissions = substr(decoct(fileperms($pathOfLockFile)), 2);\r
-               $instance->__destruct();\r
-\r
-               $this->assertEquals($resultFilePermissions, '0777');\r
-       }\r
-}\r
-?>\r
+<?php
+/***************************************************************
+ *  Copyright notice
+ *
+ *  (c) 2010-2011 Christian Kuhn <lolli@schwarzbu.ch>
+ *  All rights reserved
+ *
+ *  This script is part of the TYPO3 project. The TYPO3 project is
+ *  free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  The GNU General Public License can be found at
+ *  http://www.gnu.org/copyleft/gpl.html.
+ *
+ *  This script is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  This copyright notice MUST APPEAR in all copies of the script!
+ ***************************************************************/
+
+/**
+ * Testcase for t3lib_lock
+ *
+ * @author Christian Kuhn <lolli@schwarzbu.ch>
+ *
+ * @package TYPO3
+ * @subpackage t3lib
+ */
+
+class t3lib_lockTest extends tx_phpunit_testcase {
+
+       /**
+        * Enable backup of global and system variables
+        *
+        * @var boolean
+        */
+       protected $backupGlobals = TRUE;
+       
+       /**
+        * Exclude TYPO3_DB from backup/ restore of $GLOBALS
+        * because resource types cannot be handled during serializing
+        *
+        * @var array
+        */
+       protected $backupGlobalsBlacklist = array('TYPO3_DB');
+
+       ///////////////////////////////
+       // tests concerning acquire
+       ///////////////////////////////a
+
+       /**
+        * @test
+        */
+       public function acquireFixesPermissionsOnLockFileIfUsingSimpleLogging() {
+               if (TYPO3_OS == 'WIN') {
+                       $this->markTestSkipped('acquireFixesPermissionsOnLockFileIfUsingSimpleLogging() test not available on Windows.');
+               }
+
+                       // Use a very high id to be unique
+               $instance = new t3lib_lock(999999999, 'simple');
+               $pathOfLockFile = $instance->getResource();
+               $GLOBALS['TYPO3_CONF_VARS']['BE']['fileCreateMask'] = '0777';
+
+                       // Acquire lock, get actual file permissions and clean up
+               $instance->acquire();
+               clearstatcache();
+               $resultFilePermissions = substr(decoct(fileperms($pathOfLockFile)), 2);
+               $instance->__destruct();
+
+               $this->assertEquals($resultFilePermissions, '0777');
+       }
+}
+?>