[TASK] Use ::class where possible in fluid unit tests 56/41656/2
authorSebastian Michaelsen <sebastian@michaelsen.io>
Sat, 18 Jul 2015 08:36:37 +0000 (10:36 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Sat, 18 Jul 2015 08:46:55 +0000 (10:46 +0200)
Resolves: #68329
Releases: master
Change-Id: Ia2bb36a279c7eb160d873162637d983021b9d2d8
Reviewed-on: http://review.typo3.org/41656
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/Nl2brViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/PaddingViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/PrintfViewHelperTest.php

index 5a218e2..aa4adb1 100644 (file)
@@ -12,6 +12,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  *                                                                        */
 
 use TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase;
+use TYPO3\CMS\Fluid\ViewHelpers\Format\Nl2brViewHelper;
 
 /**
  * Test case
@@ -19,13 +20,13 @@ use TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase;
 class Nl2brViewHelperTest extends ViewHelperBaseTestcase {
 
        /**
-        * @var \TYPO3\CMS\Fluid\ViewHelpers\Format\Nl2brViewHelper
+        * @var Nl2brViewHelper
         */
        protected $viewHelper;
 
        protected function setUp() {
                parent::setUp();
-               $this->viewHelper = $this->getMock('TYPO3\CMS\Fluid\ViewHelpers\Format\Nl2brViewHelper', array('renderChildren'));
+               $this->viewHelper = $this->getMock(Nl2brViewHelper::class, array('renderChildren'));
                $this->injectDependenciesIntoViewHelper($this->viewHelper);
                $this->viewHelper->initializeArguments();
        }
index a870ff3..751e441 100644 (file)
@@ -12,6 +12,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  *                                                                        */
 
 use TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase;
+use TYPO3\CMS\Fluid\ViewHelpers\Format\PaddingViewHelper;
 
 /**
  * Test case
@@ -19,13 +20,13 @@ use TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase;
 class PaddingViewHelperTest extends ViewHelperBaseTestcase {
 
        /**
-        * @var \TYPO3\Fluid\ViewHelpers\Format\PaddingViewHelper
+        * @var PaddingViewHelper
         */
        protected $viewHelper;
 
        protected function setUp() {
                parent::setUp();
-               $this->viewHelper = $this->getMock('TYPO3\CMS\Fluid\ViewHelpers\Format\PaddingViewHelper', array('renderChildren'));
+               $this->viewHelper = $this->getMock(PaddingViewHelper::class, array('renderChildren'));
                $this->injectDependenciesIntoViewHelper($this->viewHelper);
                $this->viewHelper->initializeArguments();
        }
index 90adc59..9b3cc2a 100644 (file)
@@ -12,6 +12,7 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  *                                                                        */
 
 use TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase;
+use TYPO3\CMS\Fluid\ViewHelpers\Format\PrintfViewHelper;
 
 /**
  * Test case
@@ -19,13 +20,13 @@ use TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase;
 class PrintfViewHelperTest extends ViewHelperBaseTestcase {
 
        /**
-        * @var \TYPO3\Fluid\ViewHelpers\Format\PrintfViewHelper
+        * @var PrintfViewHelper
         */
        protected $viewHelper;
 
        protected function setUp() {
                parent::setUp();
-               $this->viewHelper = $this->getMock('TYPO3\CMS\Fluid\ViewHelpers\Format\PrintfViewHelper', array('renderChildren'));
+               $this->viewHelper = $this->getMock(PrintfViewHelper::class, array('renderChildren'));
                $this->injectDependenciesIntoViewHelper($this->viewHelper);
                $this->viewHelper->initializeArguments();
        }