[CLEANUP] Fix case mismatch of classes 25/47525/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Thu, 7 Apr 2016 06:46:40 +0000 (08:46 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 7 Apr 2016 10:47:44 +0000 (12:47 +0200)
Resolves: #75432
Releases: master
Change-Id: I7b45a953b68fd26d3660a2937ba8312e3afb5c21
Reviewed-on: https://review.typo3.org/47525
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php
typo3/sysext/extbase/Tests/Unit/Persistence/ObjectStorageTest.php
typo3/sysext/extbase/Tests/Unit/Utility/DebuggerUtilityTest.php
typo3/sysext/extbase/Tests/Unit/Validation/Validator/CollectionValidatorTest.php
typo3/sysext/extbase/Tests/Unit/Validation/Validator/NotEmptyValidatorTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/SelectViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Widget/Controller/PaginateControllerTest.php
typo3/sysext/rtehtmlarea/Classes/Form/Resolver/RichTextNodeResolver.php
typo3/sysext/workspaces/Classes/ExtDirect/MassActionHandler.php

index 560518d..bb45b82 100644 (file)
@@ -303,7 +303,7 @@ class ArrayUtilityTest extends UnitTestCase
      */
     public function getValueByPathValidDataProvider()
     {
-        $testObject = new \StdClass();
+        $testObject = new \stdClass();
         $testObject->foo = 'foo';
         $testObject->bar = 'bar';
         return array(
@@ -453,7 +453,7 @@ class ArrayUtilityTest extends UnitTestCase
      */
     public function setValueByPathSetsCorrectValueDataProvider()
     {
-        $testObject = new \StdClass();
+        $testObject = new \stdClass();
         $testObject->foo = 'foo';
         $testObject->bar = 'bar';
         return array(
index 6234c79..82d8085 100644 (file)
@@ -25,8 +25,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function anObjectCanBeAttached()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass();
-        $object2 = new \StdClass();
+        $object1 = new \stdClass();
+        $object2 = new \stdClass();
         $objectStorage->attach($object1);
         $objectStorage->attach($object2, 'foo');
         $this->assertEquals($objectStorage[$object1], null);
@@ -39,8 +39,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function anObjectCanBeDetached()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass();
-        $object2 = new \StdClass();
+        $object1 = new \stdClass();
+        $object2 = new \stdClass();
         $objectStorage->attach($object1);
         $objectStorage->attach($object2, 'foo');
         $this->assertEquals(count($objectStorage), 2);
@@ -56,8 +56,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function offsetSetAssociatesDataToAnObjectInTheStorage()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass();
-        $object2 = new \StdClass();
+        $object1 = new \stdClass();
+        $object2 = new \stdClass();
         $objectStorage->offsetSet($object1, 'foo');
         $this->assertEquals(count($objectStorage), 1);
         $objectStorage[$object2] = 'bar';
@@ -70,8 +70,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function offsetUnsetRemovesAnObjectFromTheStorage()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass();
-        $object2 = new \StdClass();
+        $object1 = new \stdClass();
+        $object2 = new \stdClass();
         $objectStorage->attach($object1);
         $objectStorage->attach($object2, 'foo');
         $this->assertEquals(count($objectStorage), 2);
@@ -87,8 +87,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function offsetGetReturnsTheDataAssociatedWithAnObject()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass();
-        $object2 = new \StdClass();
+        $object1 = new \stdClass();
+        $object2 = new \stdClass();
         $objectStorage[$object1] = 'foo';
         $objectStorage->attach($object2);
         $this->assertEquals($objectStorage->offsetGet($object1), 'foo');
@@ -101,8 +101,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function offsetExistsChecksWhetherAnObjectExistsInTheStorage()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass();
-        $object2 = new \StdClass();
+        $object1 = new \stdClass();
+        $object2 = new \stdClass();
         $objectStorage->attach($object1);
         $this->assertEquals($objectStorage->offsetExists($object1), true);
         $this->assertEquals($objectStorage->offsetExists($object2), false);
@@ -132,9 +132,9 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function getInfoReturnsTheDataAssociatedWithTheCurrentIteratorEntry()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass();
-        $object2 = new \StdClass();
-        $object3 = new \StdClass();
+        $object1 = new \stdClass();
+        $object2 = new \stdClass();
+        $object3 = new \stdClass();
         $objectStorage->attach($object1, 42);
         $objectStorage->attach($object2, 'foo');
         $objectStorage->attach($object3, array('bar', 'baz'));
@@ -152,8 +152,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function setInfoSetsTheDataAssociatedWithTheCurrentIteratorEntry()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass();
-        $object2 = new \StdClass();
+        $object1 = new \stdClass();
+        $object2 = new \stdClass();
         $objectStorage->attach($object1);
         $objectStorage->attach($object2, 'foo');
         $objectStorage->rewind();
@@ -169,8 +169,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
      */
     public function removeAllRemovesObjectsContainedInAnotherStorageFromTheCurrentStorage()
     {
-        $object1 = new \StdClass();
-        $object2 = new \StdClass();
+        $object1 = new \stdClass();
+        $object2 = new \stdClass();
         $objectStorageA = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
         $objectStorageA->attach($object1, 'foo');
         $objectStorageB = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
@@ -186,8 +186,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
      */
     public function addAllAddsAllObjectsFromAnotherStorage()
     {
-        $object1 = new \StdClass();
-        $object2 = new \StdClass();
+        $object1 = new \stdClass();
+        $object2 = new \stdClass();
         $objectStorageA = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
         // It might be better to mock this
         $objectStorageA->attach($object1, 'foo');
@@ -205,8 +205,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function theStorageCanBeRetrievedAsArray()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass();
-        $object2 = new \StdClass();
+        $object1 = new \stdClass();
+        $object2 = new \stdClass();
         $objectStorage->attach($object1, 'foo');
         $objectStorage->attach($object2, 'bar');
         $this->assertEquals(array($object1, $object2), $objectStorage->toArray());
@@ -219,9 +219,9 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function allRelationsAreNotDirtyOnAttaching()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass();
-        $object2 = new \StdClass();
-        $object3 = new \StdClass();
+        $object1 = new \stdClass();
+        $object2 = new \stdClass();
+        $object3 = new \stdClass();
         $objectStorage->attach($object1);
         $objectStorage->attach($object2);
         $objectStorage->attach($object3);
@@ -236,9 +236,9 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function allRelationsAreNotDirtyOnAttachingAndRemoving()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass;
-        $object2 = new \StdClass;
-        $object3 = new \StdClass;
+        $object1 = new \stdClass;
+        $object2 = new \stdClass;
+        $object3 = new \stdClass;
         $objectStorage->attach($object1);
         $objectStorage->attach($object2);
         $objectStorage->detach($object2);
@@ -253,8 +253,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function theRelationsAreNotDirtyOnReAddingAtSamePosition()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass;
-        $object2 = new \StdClass;
+        $object1 = new \stdClass;
+        $object2 = new \stdClass;
         $objectStorage->attach($object1);
         $objectStorage->attach($object2);
         $clonedStorage = clone $objectStorage;
@@ -271,8 +271,8 @@ class ObjectStorageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     public function theRelationsAreDirtyOnReAddingAtOtherPosition()
     {
         $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-        $object1 = new \StdClass;
-        $object2 = new \StdClass;
+        $object1 = new \stdClass;
+        $object2 = new \stdClass;
         $objectStorage->attach($object1);
         $objectStorage->attach($object2);
         $clonedStorage = clone $objectStorage;
index 8a8adb6..7c2cdbe 100644 (file)
@@ -37,7 +37,7 @@ class DebuggerUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
         /** @var $objectStorage \TYPO3\CMS\Extbase\Persistence\ObjectStorage */
         $objectStorage = $this->getMock(\TYPO3\CMS\Extbase\Persistence\ObjectStorage::class, array('dummy'));
         for ($i = 0; $i < 5; $i++) {
-            $obj = new \StdClass();
+            $obj = new \stdClass();
             $obj->property = $i;
             $objectStorage->attach($obj);
         }
index 7ee09b5..dfc1f9f 100644 (file)
@@ -77,7 +77,7 @@ class CollectionValidatorTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
      */
     public function collectionValidatorFailsForAValueNotBeingACollection()
     {
-        $this->assertTrue($this->validator->validate(new \StdClass())->hasErrors());
+        $this->assertTrue($this->validator->validate(new \stdClass())->hasErrors());
     }
 
     /**
index 7d77797..d8ded1d 100644 (file)
@@ -98,7 +98,7 @@ class NotEmptyValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\Validation\Val
     public function notEmptyValidatorWorksForNotEmptyCountableObjects()
     {
         $countableObject = new \SplObjectStorage();
-        $countableObject->attach(new \StdClass());
+        $countableObject->attach(new \stdClass());
         $this->assertFalse($this->validator->validate($countableObject)->hasErrors());
     }
 }
index 25a5235..a47387d 100644 (file)
@@ -137,18 +137,18 @@ class SelectViewHelperTest extends \TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\
             '<option value="1">Foo</option>' . chr(10)
         );
 
-        $obj1 = new \StdClass();
+        $obj1 = new \stdClass();
         $obj1->uid = 1;
         $obj1->title = 'Foo';
 
-        $obj2 = new \StdClass();
+        $obj2 = new \stdClass();
         $obj2->uid = -1;
         $obj2->title = 'Bar';
 
-        $obj3 = new \StdClass();
+        $obj3 = new \stdClass();
         $obj3->title = 'Baz';
 
-        $obj4 = new \StdClass();
+        $obj4 = new \stdClass();
         $obj4->uid = 2;
 
         $this->arguments['optionValueField'] = 'uid';
index 1e6843c..271d775 100644 (file)
@@ -190,7 +190,7 @@ class PaginateControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     {
         $objects = new ObjectStorage();
         for ($i = 0; $i <= 25; $i++) {
-            $item = new \StdClass;
+            $item = new \stdClass;
             $objects->attach($item);
         }
         $this->controller->_set('objects', $objects);
@@ -209,7 +209,7 @@ class PaginateControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
         $this->controller->_set('currentPage', 2);
         $objects = new ObjectStorage();
         for ($i = 0; $i <= 55; $i++) {
-            $item = new \StdClass;
+            $item = new \stdClass;
             $objects->attach($item);
         }
         $this->controller->_set('objects', $objects);
@@ -227,7 +227,7 @@ class PaginateControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     {
         $objects = array();
         for ($i = 0; $i <= 25; $i++) {
-            $item = new \StdClass;
+            $item = new \stdClass;
             $objects[] = $item;
         }
         $this->controller->_set('objects', $objects);
@@ -246,7 +246,7 @@ class PaginateControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
         $this->controller->_set('currentPage', 2);
         $objects = array();
         for ($i = 0; $i <= 55; $i++) {
-            $item = new \StdClass;
+            $item = new \stdClass;
             $objects[] = $item;
         }
         $this->controller->_set('objects', $objects);
index 37233c1..d7be72d 100644 (file)
@@ -76,7 +76,7 @@ class RichTextNodeResolver implements NodeResolverInterface
                     $rteSetupConfiguration = BackendUtility::RTEsetup($rteSetup['properties'], $table, $fieldName, $rteTcaTypeValue);
                     if (!$rteSetupConfiguration['disabled']) {
                         // Finally, we're sure the editor should really be rendered ...
-                        return RichtextElement::class;
+                        return RichTextElement::class;
                     }
                 }
             }
index e065bfe..8f401e9 100644 (file)
@@ -62,10 +62,10 @@ class MassActionHandler extends AbstractHandler
     /**
      * Publishes the current workspace.
      *
-     * @param stdclass $parameters
+     * @param \stdClass $parameters
      * @return array
      */
-    public function publishWorkspace(\stdclass $parameters)
+    public function publishWorkspace(\stdClass $parameters)
     {
         $result = array(
             'init' => false,
@@ -91,10 +91,10 @@ class MassActionHandler extends AbstractHandler
     /**
      * Flushes the current workspace.
      *
-     * @param stdclass $parameters
+     * @param \stdClass $parameters
      * @return array
      */
-    public function flushWorkspace(\stdclass $parameters)
+    public function flushWorkspace(\stdClass $parameters)
     {
         $result = array(
             'init' => false,