[TASK] Properly double-backslash some backslashes in strings 48/19948/4
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 13 Apr 2013 21:58:01 +0000 (23:58 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 29 Jul 2013 13:07:43 +0000 (15:07 +0200)
Resolves: #47198
Releases: 6.2
Change-Id: I56c1221b58ce08868ff755c4a54b0fa9f4447aff
Reviewed-on: https://review.typo3.org/19948
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/belog/Classes/Module/BackendLogModuleBootstrap.php
typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php
typo3/sysext/core/Tests/Unit/Resource/FileTest.php
typo3/sysext/sys_note/Classes/Core/Bootstrap.php

index 12d866c..336e25d 100644 (file)
@@ -65,7 +65,7 @@ class BackendLogModuleBootstrap {
                $configuration = array(
                        'extensionName' => 'Belog',
                        'pluginName' => 'system_BelogLog',
-                       'vendorName' => 'TYPO3\CMS',
+                       'vendorName' => 'TYPO3\\CMS',
                );
                // Yeah, this is ugly. But currently, there is no other direct way
                // in extbase to force a specific controller in backend mode.
index bf84f6f..6aa38ce 100644 (file)
@@ -1448,7 +1448,7 @@ class LocalDriverTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCase {
         * @test
         */
        public function renameFolderRevertsRenamingIfFilenameMapCannotBeCreated() {
-               $this->setExpectedException('\RuntimeException', '', 1334160746);
+               $this->setExpectedException('\\RuntimeException', '', 1334160746);
                $this->addToMount(array(
                        'sourceFolder' => array(
                                'file' => 'asdfg'
index 67e9ec5..ea78f6d 100644 (file)
@@ -315,7 +315,7 @@ class FileTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        public function readFailsIfFileIsClosed() {
                $this->markTestSkipped();
-               $this->setExpectedException('\RuntimeException', '', 1299863431);
+               $this->setExpectedException('\\RuntimeException', '', 1299863431);
                $fixture = $this->prepareFixture();
                $mockFileHandle = $this->getMock('TYPO3\\CMS\\Core\\Resource\\FileHandle', array(), array(), '', FALSE);
                $mockDriver = $this->getMockForAbstractClass('t3lib_file_driver_Abstract');
@@ -347,7 +347,7 @@ class FileTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        public function writeFailsIfFileIsClosed() {
                $this->markTestSkipped();
-               $this->setExpectedException('\RuntimeException', '', 1299863432);
+               $this->setExpectedException('\\RuntimeException', '', 1299863432);
                $fixture = $this->prepareFixture();
                $mockFileHandle = $this->getMock('TYPO3\\CMS\\Core\\Resource\\FileHandle', array(), array(), '', FALSE);
                $mockDriver = $this->getMockForAbstractClass('t3lib_file_driver_Abstract');
index 9445837..79517ac 100644 (file)
@@ -37,7 +37,7 @@ class Bootstrap {
         * @var array
         */
        protected $extbaseConfiguration = array(
-               'vendorName' => 'TYPO3\CMS',
+               'vendorName' => 'TYPO3\\CMS',
                'extensionName' => 'SysNote',
                'pluginName' => 'Note',
        );