[TASK] CGL violations "LineEndingsInvalidEOLChar"
authorRoland Waldner <most.wanted@gmx.at>
Sun, 30 Sep 2012 12:49:38 +0000 (14:49 +0200)
committerDmitry Dulepov <dmitry@typo3.org>
Wed, 3 Oct 2012 10:37:47 +0000 (12:37 +0200)
Resolves: #41474
Releases: 6.0
Change-Id: I55edcf54004f8ba1663a9d1d1fd8e4921a121d62
Reviewed-on: http://review.typo3.org/15172
Tested-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Reviewed-by: Philipp Gampe
Reviewed-by: Oliver Klee
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
typo3/sysext/lang/Tests/Unit/Domain/Model/ExtensionTest.php
typo3/sysext/lang/Tests/Unit/Domain/Model/LanguageSelectionFormTest.php
typo3/sysext/lang/Tests/Unit/Domain/Model/LanguageTest.php
typo3/sysext/lang/Tests/Unit/Domain/Model/UpdateTranslationFormTest.php

index 5bf7473..c01c092 100644 (file)
-<?php\r
-namespace TYPO3\CMS\Lang\Tests\Unit\Domain\Model;\r
-\r
-/***************************************************************\r
- *  Copyright notice\r
- *\r
- *  (c) 2012 Wouter Wolters <typo3@wouterwolters.nl>\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
- *  A copy is found in the textfile GPL.txt and important notices to the license\r
- *  from the author is found in LICENSE.txt distributed with these scripts.\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 Extension\r
- *\r
- * @author Wouter Wolters <typo3@wouterwolters.nl>\r
- * @package TYPO3\r
- * @subpackage lang\r
- */\r
-class ExtensionTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {\r
-\r
-       /**\r
-        * @var \TYPO3\CMS\Lang\Domain\Model\Extension\r
-        */\r
-       protected $fixture = NULL;\r
-\r
-       /**\r
-        * Set up\r
-        */\r
-       public function setUp() {\r
-               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Extension();\r
-       }\r
-\r
-       /**\r
-        * Tear down\r
-        */\r
-       public function tearDown() {\r
-               $this->fixture = NULL;\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getKeyInitiallyReturnsEmptyString() {\r
-               $this->assertSame(\r
-                       '',\r
-                       $this->fixture->getKey()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getKeyInitiallyReturnsGivenKeyFromConstruct() {\r
-               $key = 'foo bar';\r
-               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Extension($key);\r
-\r
-               $this->assertSame(\r
-                       $key,\r
-                       $this->fixture->getKey()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setKeySetsKey() {\r
-               $key = 'foo bar';\r
-               $this->fixture->setKey($key);\r
-\r
-               $this->assertSame(\r
-                       $key,\r
-                       $this->fixture->getKey()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getTitleInitiallyReturnsEmptyString() {\r
-               $this->assertSame(\r
-                       '',\r
-                       $this->fixture->getTitle()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getTitleInitiallyReturnsGivenTitleFromConstruct() {\r
-               $title = 'foo bar';\r
-               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Extension('', $title);\r
-\r
-               $this->assertSame(\r
-                       $title,\r
-                       $this->fixture->getTitle()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setTitleSetsTitle() {\r
-               $title = 'foo bar';\r
-               $this->fixture->setTitle($title);\r
-\r
-               $this->assertSame(\r
-                       $title,\r
-                       $this->fixture->getTitle()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getIconInitiallyReturnsEmptyString() {\r
-               $this->assertSame(\r
-                       '',\r
-                       $this->fixture->getIcon()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getIconInitiallyReturnsGivenIconFromConstruct() {\r
-               $icon = 'foo bar';\r
-               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Extension('', '', $icon);\r
-\r
-               $this->assertSame(\r
-                       $icon,\r
-                       $this->fixture->getIcon()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setIconSetsIcon() {\r
-               $icon = 'foo bar';\r
-               $this->fixture->setIcon($icon);\r
-\r
-               $this->assertSame(\r
-                       $icon,\r
-                       $this->fixture->getIcon()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getVersionInitiallyReturnsEmptyString() {\r
-               $this->assertSame(\r
-                       '',\r
-                       $this->fixture->getVersion()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setVersionSetsVersion() {\r
-               $version = 10;\r
-               $this->fixture->setVersion($version);\r
-\r
-               $this->assertSame(\r
-                       $version,\r
-                       $this->fixture->getVersion()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setVersionSetsVersionFromString() {\r
-               $version = 4012003;\r
-               $this->fixture->setVersionFromString('4.12.3');\r
-\r
-               $this->assertSame(\r
-                       $version,\r
-                       $this->fixture->getVersion()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getUpdateResultInitiallyReturnsEmptyArray() {\r
-               $this->assertSame(\r
-                       array(),\r
-                       $this->fixture->getUpdateResult()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setUpdateResultSetsUpdateResult() {\r
-               $updateResult = array(\r
-                       'nl' => array(\r
-                               'icon' => '<span class="t3-icon t3-icon-actions t3-icon-actions-document t3-icon-document-info">&nbsp;</span>',\r
-                               'message' => 'translation_n_a'\r
-                       ),\r
-               );\r
-\r
-               $this->fixture->setUpdateResult($updateResult);\r
-\r
-               $this->assertSame(\r
-                       $updateResult,\r
-                       $this->fixture->getUpdateResult()\r
-               );\r
-       }\r
-\r
-}\r
+<?php
+
+namespace TYPO3\CMS\Lang\Tests\Unit\Domain\Model;
+
+/***************************************************************
+ *  Copyright notice
+ *
+ *  (c) 2012 Wouter Wolters <typo3@wouterwolters.nl>
+ *  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.
+ *  A copy is found in the textfile GPL.txt and important notices to the license
+ *  from the author is found in LICENSE.txt distributed with these scripts.
+ *
+ *  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 Extension
+ *
+ * @author Wouter Wolters <typo3@wouterwolters.nl>
+ * @package TYPO3
+ * @subpackage lang
+ */
+class ExtensionTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+
+       /**
+        * @var \TYPO3\CMS\Lang\Domain\Model\Extension
+        */
+       protected $fixture = NULL;
+
+       /**
+        * Set up
+        */
+       public function setUp() {
+               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Extension();
+       }
+
+       /**
+        * Tear down
+        */
+       public function tearDown() {
+               $this->fixture = NULL;
+       }
+
+       /**
+        * @test
+        */
+       public function getKeyInitiallyReturnsEmptyString() {
+               $this->assertSame(
+                       '',
+                       $this->fixture->getKey()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getKeyInitiallyReturnsGivenKeyFromConstruct() {
+               $key = 'foo bar';
+               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Extension($key);
+
+               $this->assertSame(
+                       $key,
+                       $this->fixture->getKey()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setKeySetsKey() {
+               $key = 'foo bar';
+               $this->fixture->setKey($key);
+
+               $this->assertSame(
+                       $key,
+                       $this->fixture->getKey()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getTitleInitiallyReturnsEmptyString() {
+               $this->assertSame(
+                       '',
+                       $this->fixture->getTitle()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getTitleInitiallyReturnsGivenTitleFromConstruct() {
+               $title = 'foo bar';
+               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Extension('', $title);
+
+               $this->assertSame(
+                       $title,
+                       $this->fixture->getTitle()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setTitleSetsTitle() {
+               $title = 'foo bar';
+               $this->fixture->setTitle($title);
+
+               $this->assertSame(
+                       $title,
+                       $this->fixture->getTitle()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getIconInitiallyReturnsEmptyString() {
+               $this->assertSame(
+                       '',
+                       $this->fixture->getIcon()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getIconInitiallyReturnsGivenIconFromConstruct() {
+               $icon = 'foo bar';
+               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Extension('', '', $icon);
+
+               $this->assertSame(
+                       $icon,
+                       $this->fixture->getIcon()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setIconSetsIcon() {
+               $icon = 'foo bar';
+               $this->fixture->setIcon($icon);
+
+               $this->assertSame(
+                       $icon,
+                       $this->fixture->getIcon()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getVersionInitiallyReturnsEmptyString() {
+               $this->assertSame(
+                       '',
+                       $this->fixture->getVersion()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setVersionSetsVersion() {
+               $version = 10;
+               $this->fixture->setVersion($version);
+
+               $this->assertSame(
+                       $version,
+                       $this->fixture->getVersion()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setVersionSetsVersionFromString() {
+               $version = 4012003;
+               $this->fixture->setVersionFromString('4.12.3');
+
+               $this->assertSame(
+                       $version,
+                       $this->fixture->getVersion()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getUpdateResultInitiallyReturnsEmptyArray() {
+               $this->assertSame(
+                       array(),
+                       $this->fixture->getUpdateResult()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setUpdateResultSetsUpdateResult() {
+               $updateResult = array(
+                       'nl' => array(
+                               'icon' => '<span class="t3-icon t3-icon-actions t3-icon-actions-document t3-icon-document-info">&nbsp;</span>',
+                               'message' => 'translation_n_a'
+                       ),
+               );
+
+               $this->fixture->setUpdateResult($updateResult);
+
+               $this->assertSame(
+                       $updateResult,
+                       $this->fixture->getUpdateResult()
+               );
+       }
+
+}
 ?>
\ No newline at end of file
index 42ed443..49ccaa5 100644 (file)
-<?php\r
-namespace TYPO3\CMS\Lang\Tests\Unit\Domain\Model;\r
-/***************************************************************\r
- *  Copyright notice\r
- *\r
- *  (c) 2012 Wouter Wolters <typo3@wouterwolters.nl>\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
- *  A copy is found in the textfile GPL.txt and important notices to the license\r
- *  from the author is found in LICENSE.txt distributed with these scripts.\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 LanguageSelectionForm\r
- *\r
- * @author Wouter Wolters <typo3@wouterwolters.nl>\r
- * @package TYPO3\r
- * @subpackage lang\r
- */\r
-class LanguageSelectionFormTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {\r
-\r
-       /**\r
-        * @var \TYPO3\CMS\Lang\Domain\Model\LanguageSelectionForm\r
-        */\r
-       protected $fixture = NULL;\r
-\r
-       /**\r
-        * Set up\r
-        */\r
-       public function setUp() {\r
-               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\LanguageSelectionForm();\r
-       }\r
-\r
-       /**\r
-        * Tear down\r
-        */\r
-       public function tearDown() {\r
-               $this->fixture = NULL;\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getLanguagesInitiallyReturnsEmptyArray() {\r
-               $this->assertSame(\r
-                       array(),\r
-                       $this->fixture->getLanguages()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setLanguagesSetsLanguage() {\r
-               $language = array(\r
-                       'nl' => '1',\r
-                       'de' => '0',\r
-               );\r
-               $this->fixture->setLanguages($language);\r
-\r
-               $this->assertSame(\r
-                       $language,\r
-                       $this->fixture->getLanguages()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getSelectedLanguagesInitiallyReturnsEmptyArray() {\r
-               $this->assertSame(\r
-                       array(),\r
-                       $this->fixture->getSelectedLanguages()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setSelectedLanguagesSetsSelectedLanguages() {\r
-               $selectedLanguages = array(\r
-                       'nl' => '1',\r
-                       'de' => '0',\r
-               );\r
-               $this->fixture->setSelectedLanguages($selectedLanguages);\r
-\r
-               $this->assertSame(\r
-                       $selectedLanguages,\r
-                       $this->fixture->getSelectedLanguages()\r
-               );\r
-       }\r
-}\r
+<?php
+
+namespace TYPO3\CMS\Lang\Tests\Unit\Domain\Model;
+/***************************************************************
+ *  Copyright notice
+ *
+ *  (c) 2012 Wouter Wolters <typo3@wouterwolters.nl>
+ *  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.
+ *  A copy is found in the textfile GPL.txt and important notices to the license
+ *  from the author is found in LICENSE.txt distributed with these scripts.
+ *
+ *  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 LanguageSelectionForm
+ *
+ * @author Wouter Wolters <typo3@wouterwolters.nl>
+ * @package TYPO3
+ * @subpackage lang
+ */
+class LanguageSelectionFormTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+
+       /**
+        * @var \TYPO3\CMS\Lang\Domain\Model\LanguageSelectionForm
+        */
+       protected $fixture = NULL;
+
+       /**
+        * Set up
+        */
+       public function setUp() {
+               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\LanguageSelectionForm();
+       }
+
+       /**
+        * Tear down
+        */
+       public function tearDown() {
+               $this->fixture = NULL;
+       }
+
+       /**
+        * @test
+        */
+       public function getLanguagesInitiallyReturnsEmptyArray() {
+               $this->assertSame(
+                       array(),
+                       $this->fixture->getLanguages()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setLanguagesSetsLanguage() {
+               $language = array(
+                       'nl' => '1',
+                       'de' => '0',
+               );
+               $this->fixture->setLanguages($language);
+
+               $this->assertSame(
+                       $language,
+                       $this->fixture->getLanguages()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getSelectedLanguagesInitiallyReturnsEmptyArray() {
+               $this->assertSame(
+                       array(),
+                       $this->fixture->getSelectedLanguages()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setSelectedLanguagesSetsSelectedLanguages() {
+               $selectedLanguages = array(
+                       'nl' => '1',
+                       'de' => '0',
+               );
+               $this->fixture->setSelectedLanguages($selectedLanguages);
+
+               $this->assertSame(
+                       $selectedLanguages,
+                       $this->fixture->getSelectedLanguages()
+               );
+       }
+}
 ?>
\ No newline at end of file
index e42c4a8..5c27e56 100644 (file)
-<?php\r
-namespace TYPO3\CMS\Lang\Tests\Unit\Domain\Model;\r
-\r
-/***************************************************************\r
- *  Copyright notice\r
- *\r
- *  (c) 2012 Wouter Wolters <typo3@wouterwolters.nl>\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
- *  A copy is found in the textfile GPL.txt and important notices to the license\r
- *  from the author is found in LICENSE.txt distributed with these scripts.\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 Language\r
- *\r
- * @author Wouter Wolters <typo3@wouterwolters.nl>\r
- * @package TYPO3\r
- * @subpackage lang\r
- */\r
-class LanguageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {\r
-\r
-       /**\r
-        * @var \TYPO3\CMS\Lang\Domain\Model\Language\r
-        */\r
-       protected $fixture = NULL;\r
-\r
-       /**\r
-        * Set up\r
-        */\r
-       public function setUp() {\r
-               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Language();\r
-       }\r
-\r
-       /**\r
-        * Tear down\r
-        */\r
-       public function tearDown() {\r
-               $this->fixture = NULL;\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getLocaleInitiallyReturnsEmptyString() {\r
-               $this->assertSame(\r
-                       '',\r
-                       $this->fixture->getLocale()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getLocaleInitiallyReturnsGivenLocaleFromConstruct() {\r
-               $locale = 'nl';\r
-               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Language($locale);\r
-\r
-               $this->assertSame(\r
-                       $locale,\r
-                       $this->fixture->getLocale()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setLocaleSetsLocale() {\r
-               $locale = 'nl';\r
-               $this->fixture->setLocale($locale);\r
-\r
-               $this->assertSame(\r
-                       $locale,\r
-                       $this->fixture->getLocale()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getLanguageInitiallyReturnsEmptyString() {\r
-               $this->assertSame(\r
-                       '',\r
-                       $this->fixture->getLanguage()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getLanguageInitiallyReturnsGivenLanguageFromConstruct() {\r
-               $language = 'nl';\r
-               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Language('', $language);\r
-\r
-               $this->assertSame(\r
-                       $language,\r
-                       $this->fixture->getLanguage()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setLanguageSetsLanguage() {\r
-               $language = 'nl';\r
-               $this->fixture->setLanguage($language);\r
-\r
-               $this->assertSame(\r
-                       $language,\r
-                       $this->fixture->getLanguage()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getSelectedInitiallyReturnsFalse() {\r
-               $this->assertSame(\r
-                       FALSE,\r
-                       $this->fixture->getSelected()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getSelectedInitiallyReturnsGivenSelectedFromConstruct() {\r
-               $selected = FALSE;\r
-               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Language('', '', FALSE);\r
-\r
-               $this->assertSame(\r
-                       $selected,\r
-                       $this->fixture->getSelected()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setSelectedSetsSelected() {\r
-               $selected = TRUE;\r
-               $this->fixture->setSelected($selected);\r
-\r
-               $this->assertSame(\r
-                       $selected,\r
-                       $this->fixture->getSelected()\r
-               );\r
-       }\r
-\r
-}\r
+<?php
+
+namespace TYPO3\CMS\Lang\Tests\Unit\Domain\Model;
+
+/***************************************************************
+ *  Copyright notice
+ *
+ *  (c) 2012 Wouter Wolters <typo3@wouterwolters.nl>
+ *  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.
+ *  A copy is found in the textfile GPL.txt and important notices to the license
+ *  from the author is found in LICENSE.txt distributed with these scripts.
+ *
+ *  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 Language
+ *
+ * @author Wouter Wolters <typo3@wouterwolters.nl>
+ * @package TYPO3
+ * @subpackage lang
+ */
+class LanguageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+
+       /**
+        * @var \TYPO3\CMS\Lang\Domain\Model\Language
+        */
+       protected $fixture = NULL;
+
+       /**
+        * Set up
+        */
+       public function setUp() {
+               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Language();
+       }
+
+       /**
+        * Tear down
+        */
+       public function tearDown() {
+               $this->fixture = NULL;
+       }
+
+       /**
+        * @test
+        */
+       public function getLocaleInitiallyReturnsEmptyString() {
+               $this->assertSame(
+                       '',
+                       $this->fixture->getLocale()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getLocaleInitiallyReturnsGivenLocaleFromConstruct() {
+               $locale = 'nl';
+               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Language($locale);
+
+               $this->assertSame(
+                       $locale,
+                       $this->fixture->getLocale()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setLocaleSetsLocale() {
+               $locale = 'nl';
+               $this->fixture->setLocale($locale);
+
+               $this->assertSame(
+                       $locale,
+                       $this->fixture->getLocale()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getLanguageInitiallyReturnsEmptyString() {
+               $this->assertSame(
+                       '',
+                       $this->fixture->getLanguage()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getLanguageInitiallyReturnsGivenLanguageFromConstruct() {
+               $language = 'nl';
+               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Language('', $language);
+
+               $this->assertSame(
+                       $language,
+                       $this->fixture->getLanguage()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setLanguageSetsLanguage() {
+               $language = 'nl';
+               $this->fixture->setLanguage($language);
+
+               $this->assertSame(
+                       $language,
+                       $this->fixture->getLanguage()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getSelectedInitiallyReturnsFalse() {
+               $this->assertSame(
+                       FALSE,
+                       $this->fixture->getSelected()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getSelectedInitiallyReturnsGivenSelectedFromConstruct() {
+               $selected = FALSE;
+               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\Language('', '', FALSE);
+
+               $this->assertSame(
+                       $selected,
+                       $this->fixture->getSelected()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setSelectedSetsSelected() {
+               $selected = TRUE;
+               $this->fixture->setSelected($selected);
+
+               $this->assertSame(
+                       $selected,
+                       $this->fixture->getSelected()
+               );
+       }
+
+}
 ?>
\ No newline at end of file
index fda5eff..6dc2292 100644 (file)
-<?php\r
-namespace TYPO3\CMS\Lang\Tests\Unit\Domain\Model;\r
-\r
-/***************************************************************\r
- *  Copyright notice\r
- *\r
- *  (c) 2012 Wouter Wolters <typo3@wouterwolters.nl>\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
- *  A copy is found in the textfile GPL.txt and important notices to the license\r
- *  from the author is found in LICENSE.txt distributed with these scripts.\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 UpdateTranslationForm\r
- *\r
- * @author Wouter Wolters <typo3@wouterwolters.nl>\r
- * @package TYPO3\r
- * @subpackage lang\r
- */\r
-class UpdateTranslationFormTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {\r
-\r
-       /**\r
-        * @var \TYPO3\CMS\Lang\Domain\Model\UpdateTranslationForm\r
-        */\r
-       protected $fixture = NULL;\r
-\r
-       public function setUp() {\r
-               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\UpdateTranslationForm();\r
-       }\r
-\r
-       public function tearDown() {\r
-               unset($this->fixture);\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getSelectedLanguagesInitiallyReturnsEmptyArray() {\r
-               $this->assertSame(\r
-                       array(),\r
-                       $this->fixture->getSelectedLanguages()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setSelectedLanguagesSetsSelectedLanguages() {\r
-               $languages = array(\r
-                       'nl',\r
-                       'de',\r
-               );\r
-               $this->fixture->setSelectedLanguages($languages);\r
-\r
-               $this->assertSame(\r
-                       $languages,\r
-                       $this->fixture->getSelectedLanguages()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function getExtensionsInitiallyReturnsEmptyArray() {\r
-               $this->assertSame(\r
-                       array(),\r
-                       $this->fixture->getExtensions()\r
-               );\r
-       }\r
-\r
-       /**\r
-        * @test\r
-        */\r
-       public function setExtensionsSetsExtensions() {\r
-               $extensions = array(\r
-                       1 => 'about',\r
-                       2 => 'aboutmodules',\r
-                       3 => 'adodb',\r
-               );\r
-               $this->fixture->setExtensions($extensions);\r
-\r
-               $this->assertSame(\r
-                       $extensions,\r
-                       $this->fixture->getExtensions()\r
-               );\r
-       }\r
-}\r
+<?php
+
+namespace TYPO3\CMS\Lang\Tests\Unit\Domain\Model;
+
+/***************************************************************
+ *  Copyright notice
+ *
+ *  (c) 2012 Wouter Wolters <typo3@wouterwolters.nl>
+ *  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.
+ *  A copy is found in the textfile GPL.txt and important notices to the license
+ *  from the author is found in LICENSE.txt distributed with these scripts.
+ *
+ *  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 UpdateTranslationForm
+ *
+ * @author Wouter Wolters <typo3@wouterwolters.nl>
+ * @package TYPO3
+ * @subpackage lang
+ */
+class UpdateTranslationFormTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+
+       /**
+        * @var \TYPO3\CMS\Lang\Domain\Model\UpdateTranslationForm
+        */
+       protected $fixture = NULL;
+
+       public function setUp() {
+               $this->fixture = new \TYPO3\CMS\Lang\Domain\Model\UpdateTranslationForm();
+       }
+
+       public function tearDown() {
+               unset($this->fixture);
+       }
+
+       /**
+        * @test
+        */
+       public function getSelectedLanguagesInitiallyReturnsEmptyArray() {
+               $this->assertSame(
+                       array(),
+                       $this->fixture->getSelectedLanguages()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setSelectedLanguagesSetsSelectedLanguages() {
+               $languages = array(
+                       'nl',
+                       'de',
+               );
+               $this->fixture->setSelectedLanguages($languages);
+
+               $this->assertSame(
+                       $languages,
+                       $this->fixture->getSelectedLanguages()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function getExtensionsInitiallyReturnsEmptyArray() {
+               $this->assertSame(
+                       array(),
+                       $this->fixture->getExtensions()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setExtensionsSetsExtensions() {
+               $extensions = array(
+                       1 => 'about',
+                       2 => 'aboutmodules',
+                       3 => 'adodb',
+               );
+               $this->fixture->setExtensions($extensions);
+
+               $this->assertSame(
+                       $extensions,
+                       $this->fixture->getExtensions()
+               );
+       }
+}
 ?>
\ No newline at end of file