diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php b/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php index 3bbceaf7d86a2da124f3a697a9717a35b4e914ae..04838fba7e69cc706e17d20d0ace6e16b64ab8b2 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php @@ -14,7 +14,6 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Reflection; * The TYPO3 project - inspiring people to share! */ -use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Extbase\Reflection\ReflectionService; /** @@ -46,7 +45,7 @@ class ReflectionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCa */ public function getClassTagsValues() { - $service = GeneralUtility::makeInstance(ReflectionService::class); + $service = new ReflectionService(); $classValues = $service->getClassTagsValues(static::class); $this->assertEquals([ 'see' => ['test for reflection'], @@ -64,7 +63,7 @@ class ReflectionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCa */ public function getClassTagValues() { - $service = GeneralUtility::makeInstance(ReflectionService::class); + $service = new ReflectionService(); $classValues = $service->getClassTagValues(static::class, 'see'); $this->assertEquals([ 'test for reflection', @@ -86,7 +85,7 @@ class ReflectionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCa */ public function hasMethod() { - $service = GeneralUtility::makeInstance(ReflectionService::class); + $service = new ReflectionService(); $this->assertTrue($service->hasMethod(static::class, 'fixtureMethodForMethodTagsValues')); $this->assertFalse($service->hasMethod(static::class, 'notExistentMethod')); $this->assertFalse($service->hasMethod('NonExistantNamespace\\NonExistantClass', 'notExistentMethod')); @@ -97,7 +96,7 @@ class ReflectionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCa */ public function getMethodTagsValues() { - $service = GeneralUtility::makeInstance(ReflectionService::class); + $service = new ReflectionService(); $tagsValues = $service->getMethodTagsValues(static::class, 'fixtureMethodForMethodTagsValues'); $this->assertEquals([ 'param' => ['array $foo The foo parameter'], @@ -120,7 +119,7 @@ class ReflectionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCa */ public function getMethodParameters() { - $service = GeneralUtility::makeInstance(ReflectionService::class); + $service = new ReflectionService(); $parameters = $service->getMethodParameters(static::class, 'fixtureMethodForMethodTagsValues'); $this->assertSame([ 'foo' => [ @@ -155,7 +154,7 @@ class ReflectionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCa */ public function getMethodParametersWithShortTypeNames() { - $service = GeneralUtility::makeInstance(ReflectionService::class); + $service = new ReflectionService(); $parameters = $service->getMethodParameters(static::class, 'fixtureMethodForMethodTagsValuesWithShortTypes'); $this->assertSame([ 'dummy' => [ @@ -191,7 +190,7 @@ class ReflectionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCa public function testIsClassTaggedWith() { - $service = GeneralUtility::makeInstance(ReflectionService::class); + $service = new ReflectionService(); $this->assertTrue($service->isClassTaggedWith( Fixture\DummyClassWithTags::class, 'see' @@ -210,7 +209,7 @@ class ReflectionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCa public function testIsPropertyTaggedWith() { - $service = GeneralUtility::makeInstance(ReflectionService::class); + $service = new ReflectionService(); $this->assertTrue($service->isPropertyTaggedWith( Fixture\DummyClassWithAllTypesOfProperties::class, 'propertyWithInjectAnnotation', @@ -238,8 +237,7 @@ class ReflectionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCa public function testgetPropertyTagValues() { - $service = GeneralUtility::makeInstance(ReflectionService::class); - + $service = new ReflectionService(); $this->assertSame( [], $service->getPropertyTagValues( @@ -261,8 +259,7 @@ class ReflectionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCa public function testGetPropertyTagsValues() { - $service = GeneralUtility::makeInstance(ReflectionService::class); - + $service = new ReflectionService(); $this->assertSame( [ 'inject' => [], @@ -295,8 +292,7 @@ class ReflectionServiceTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCa public function testGetClassPropertyNames() { - $service = GeneralUtility::makeInstance(ReflectionService::class); - + $service = new ReflectionService(); $this->assertSame( [ 'publicProperty',