[TASK] Shorten the extend class in all unit tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Imaging / IconProvider / FontawesomeIconProviderTest.php
index 6ea8f3e..fa4e680 100644 (file)
@@ -16,26 +16,25 @@ namespace TYPO3\CMS\Core\Tests\Unit\Imaging\IconProvider;
 
 use TYPO3\CMS\Core\Imaging\Icon;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
 
 /**
  * Testcase for \TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider
  */
-class FontawesomeIconProviderTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
+class FontawesomeIconProviderTest extends UnitTestCase
 {
     /**
      * @var \TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider
      */
-    protected $subject = null;
+    protected $subject;
 
     /**
      * @var Icon
      */
-    protected $icon = null;
+    protected $icon;
 
     /**
      * Set up
-     *
-     * @return void
      */
     protected function setUp()
     {
@@ -50,7 +49,7 @@ class FontawesomeIconProviderTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
      */
     public function prepareIconMarkupWithNameReturnsInstanceOfIconWithCorrectMarkup()
     {
-        $this->subject->prepareIconMarkup($this->icon, array('name' => 'times'));
+        $this->subject->prepareIconMarkup($this->icon, ['name' => 'times']);
         $this->assertEquals('<span class="icon-unify"><i class="fa fa-times"></i></span>', $this->icon->getMarkup());
     }
 
@@ -73,7 +72,7 @@ class FontawesomeIconProviderTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     /**
      * @dataProvider wrongNamesDataProvider
      * @param string $name
-     * @param integer $expectedExceptionCode
+     * @param int $expectedExceptionCode
      * @test
      */
     public function prepareIconMarkupWithInvalidNameThrowsException($name, $expectedExceptionCode)