diff --git a/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php b/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php index 6bcb6c680394e..75cc439cd9923 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php @@ -28,8 +28,6 @@ class DoctrineExtensionTest extends TestCase protected function setUp(): void { - parent::setUp(); - $this->extension = $this ->getMockBuilder(AbstractDoctrineExtension::class) ->onlyMethods([ diff --git a/src/Symfony/Bridge/Doctrine/Tests/Middleware/Debug/MiddlewareTest.php b/src/Symfony/Bridge/Doctrine/Tests/Middleware/Debug/MiddlewareTest.php index 7e8cbdd4569b3..eb3acbba903a5 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/Middleware/Debug/MiddlewareTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/Middleware/Debug/MiddlewareTest.php @@ -38,8 +38,6 @@ class MiddlewareTest extends TestCase protected function setUp(): void { - parent::setUp(); - if (!interface_exists(MiddlewareInterface::class)) { $this->markTestSkipped(\sprintf('%s needed to run this test', MiddlewareInterface::class)); } diff --git a/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php b/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php index a0c9ed40bdcfe..fa7fcc959d141 100644 --- a/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php +++ b/src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php @@ -58,8 +58,6 @@ protected function getExtensions() protected function tearDown(): void { \Locale::setDefault($this->defaultLocale); - - parent::tearDown(); } protected function assertWidgetMatchesXpath(FormView $view, array $vars, $xpath) diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/UidTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/UidTest.php index da0b1e4fc80d1..245cb11b66d24 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/UidTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/UidTest.php @@ -20,8 +20,6 @@ class UidTest extends AbstractWebTestCase { protected function setUp(): void { - parent::setUp(); - self::deleteTmpDir(); } diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/WebProfilerExtensionTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/WebProfilerExtensionTest.php index 8d244d8d84c9f..2daa2d41bdb28 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/WebProfilerExtensionTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/DependencyInjection/WebProfilerExtensionTest.php @@ -54,8 +54,6 @@ public static function assertSaneContainer(Container $container) protected function setUp(): void { - parent::setUp(); - $this->kernel = $this->createMock(KernelInterface::class); $profiler = $this->createMock(Profiler::class); @@ -88,8 +86,6 @@ protected function setUp(): void protected function tearDown(): void { - parent::tearDown(); - $this->container = null; } diff --git a/src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php b/src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php index b837fc6636395..e5bf05b332880 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Tests/Profiler/TemplateManagerTest.php @@ -30,8 +30,6 @@ class TemplateManagerTest extends TestCase protected function setUp(): void { - parent::setUp(); - $this->profiler = $this->createMock(Profiler::class); $twigEnvironment = $this->mockTwigEnvironment(); $templates = [ diff --git a/src/Symfony/Component/Cache/Tests/Adapter/AdapterTestCase.php b/src/Symfony/Component/Cache/Tests/Adapter/AdapterTestCase.php index 8c4b404853f31..da430296bcdcf 100644 --- a/src/Symfony/Component/Cache/Tests/Adapter/AdapterTestCase.php +++ b/src/Symfony/Component/Cache/Tests/Adapter/AdapterTestCase.php @@ -23,8 +23,6 @@ abstract class AdapterTestCase extends CachePoolTest { protected function setUp(): void { - parent::setUp(); - if (!\array_key_exists('testPrune', $this->skippedTests) && !$this->createCachePool() instanceof PruneableInterface) { $this->skippedTests['testPrune'] = 'Not a pruneable cache pool.'; } diff --git a/src/Symfony/Component/Cache/Tests/Psr16CacheProxyTest.php b/src/Symfony/Component/Cache/Tests/Psr16CacheProxyTest.php index 25515a02dbd0c..c3d2d8d59f444 100644 --- a/src/Symfony/Component/Cache/Tests/Psr16CacheProxyTest.php +++ b/src/Symfony/Component/Cache/Tests/Psr16CacheProxyTest.php @@ -21,8 +21,6 @@ class Psr16CacheProxyTest extends SimpleCacheTest { protected function setUp(): void { - parent::setUp(); - try { \assert(false === true, new \Exception()); $this->skippedTests['testGetInvalidKeys'] = diff --git a/src/Symfony/Component/Cache/Tests/Psr16CacheTest.php b/src/Symfony/Component/Cache/Tests/Psr16CacheTest.php index 322796c303769..b5a1fe489d423 100644 --- a/src/Symfony/Component/Cache/Tests/Psr16CacheTest.php +++ b/src/Symfony/Component/Cache/Tests/Psr16CacheTest.php @@ -24,8 +24,6 @@ class Psr16CacheTest extends SimpleCacheTest { protected function setUp(): void { - parent::setUp(); - if (\array_key_exists('testPrune', $this->skippedTests)) { return; } diff --git a/src/Symfony/Component/Cache/Tests/Psr16CacheWithExternalAdapter.php b/src/Symfony/Component/Cache/Tests/Psr16CacheWithExternalAdapter.php index e018a276de7ca..39eba832b80a4 100644 --- a/src/Symfony/Component/Cache/Tests/Psr16CacheWithExternalAdapter.php +++ b/src/Symfony/Component/Cache/Tests/Psr16CacheWithExternalAdapter.php @@ -23,8 +23,6 @@ class Psr16CacheWithExternalAdapter extends SimpleCacheTest { protected function setUp(): void { - parent::setUp(); - $this->skippedTests['testSetTtl'] = $this->skippedTests['testSetMultipleTtl'] = 'The ExternalAdapter test class does not support TTLs.'; } diff --git a/src/Symfony/Component/Config/Tests/Builder/GeneratedConfigTest.php b/src/Symfony/Component/Config/Tests/Builder/GeneratedConfigTest.php index 70def5e9811f4..680010f00fc3c 100644 --- a/src/Symfony/Component/Config/Tests/Builder/GeneratedConfigTest.php +++ b/src/Symfony/Component/Config/Tests/Builder/GeneratedConfigTest.php @@ -40,8 +40,6 @@ class GeneratedConfigTest extends TestCase protected function setup(): void { - parent::setup(); - $this->tempDir = []; } @@ -49,8 +47,6 @@ protected function tearDown(): void { (new Filesystem())->remove($this->tempDir); $this->tempDir = []; - - parent::tearDown(); } public static function fixtureNames() diff --git a/src/Symfony/Component/Console/Tests/Question/QuestionTest.php b/src/Symfony/Component/Console/Tests/Question/QuestionTest.php index 0bc6f75db263d..15d8212b95498 100644 --- a/src/Symfony/Component/Console/Tests/Question/QuestionTest.php +++ b/src/Symfony/Component/Console/Tests/Question/QuestionTest.php @@ -20,7 +20,6 @@ class QuestionTest extends TestCase protected function setUp(): void { - parent::setUp(); $this->question = new Question('Test question'); } diff --git a/src/Symfony/Component/Form/Tests/ChoiceList/AbstractChoiceListTestCase.php b/src/Symfony/Component/Form/Tests/ChoiceList/AbstractChoiceListTestCase.php index 0b0cb8e79f62e..5ddae5614120d 100644 --- a/src/Symfony/Component/Form/Tests/ChoiceList/AbstractChoiceListTestCase.php +++ b/src/Symfony/Component/Form/Tests/ChoiceList/AbstractChoiceListTestCase.php @@ -39,8 +39,6 @@ abstract class AbstractChoiceListTestCase extends TestCase protected function setUp(): void { - parent::setUp(); - $this->list = $this->createChoiceList(); $choices = $this->getChoices(); diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php index a14e4a44eb5ca..e8527b22014bc 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php @@ -31,8 +31,6 @@ class DateTimeToLocalizedStringTransformerTest extends BaseDateTimeTransformerTe protected function setUp(): void { - parent::setUp(); - // Normalize intl. configuration settings. if (\extension_loaded('intl')) { $this->initialTestCaseUseException = ini_set('intl.use_exceptions', 0); diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php index 6a4d77039f150..c69ba31be9a65 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToRfc3339TransformerTest.php @@ -25,8 +25,6 @@ class DateTimeToRfc3339TransformerTest extends BaseDateTimeTransformerTestCase protected function setUp(): void { - parent::setUp(); - $this->dateTime = new \DateTime('2010-02-03 04:05:06 UTC'); $this->dateTimeWithoutSeconds = new \DateTime('2010-02-03 04:05:00 UTC'); } diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/Type/MoneyTypeTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/Type/MoneyTypeTest.php index 302f09c22ae01..f9112ffcac74a 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/Type/MoneyTypeTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/Type/MoneyTypeTest.php @@ -33,8 +33,6 @@ protected function setUp(): void protected function tearDown(): void { - parent::tearDown(); - \Locale::setDefault($this->defaultLocale); } diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/Type/NumberTypeTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/Type/NumberTypeTest.php index e744563d1ad72..95ccdfea9f48f 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/Type/NumberTypeTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/Type/NumberTypeTest.php @@ -35,8 +35,6 @@ protected function setUp(): void protected function tearDown(): void { - parent::tearDown(); - \Locale::setDefault($this->defaultLocale); } diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/Type/PercentTypeTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/Type/PercentTypeTest.php index 76595d79be367..120aab2f31b96 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/Type/PercentTypeTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/Type/PercentTypeTest.php @@ -34,8 +34,6 @@ protected function setUp(): void protected function tearDown(): void { - parent::tearDown(); - \Locale::setDefault($this->defaultLocale); } diff --git a/src/Symfony/Component/Form/Tests/NativeRequestHandlerTest.php b/src/Symfony/Component/Form/Tests/NativeRequestHandlerTest.php index 3770e12199904..6ff64bc657822 100644 --- a/src/Symfony/Component/Form/Tests/NativeRequestHandlerTest.php +++ b/src/Symfony/Component/Form/Tests/NativeRequestHandlerTest.php @@ -41,8 +41,6 @@ protected function setUp(): void protected function tearDown(): void { - parent::tearDown(); - $_GET = []; $_POST = []; $_FILES = []; diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/AutoExpireFlashBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/AutoExpireFlashBagTest.php index 0b418c006f550..8e9ee780bf0a9 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/AutoExpireFlashBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/AutoExpireFlashBagTest.php @@ -27,7 +27,6 @@ class AutoExpireFlashBagTest extends TestCase protected function setUp(): void { - parent::setUp(); $this->bag = new FlashBag(); $this->array = ['new' => ['notice' => ['A previous flash message']]]; $this->bag->initialize($this->array); @@ -36,7 +35,6 @@ protected function setUp(): void protected function tearDown(): void { unset($this->bag); - parent::tearDown(); } public function testInitialize() diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/FlashBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/FlashBagTest.php index 8163ba769d4ee..efe9a497758ae 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/FlashBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Flash/FlashBagTest.php @@ -27,7 +27,6 @@ class FlashBagTest extends TestCase protected function setUp(): void { - parent::setUp(); $this->bag = new FlashBag(); $this->array = ['notice' => ['A previous flash message']]; $this->bag->initialize($this->array); @@ -36,7 +35,6 @@ protected function setUp(): void protected function tearDown(): void { unset($this->bag); - parent::tearDown(); } public function testInitialize() diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractRedisSessionHandlerTestCase.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractRedisSessionHandlerTestCase.php index 4df1553c899e9..f6ab9951401b7 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractRedisSessionHandlerTestCase.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/AbstractRedisSessionHandlerTestCase.php @@ -31,8 +31,6 @@ abstract protected function createRedisClient(string $host): \Redis|Relay|\Redis protected function setUp(): void { - parent::setUp(); - if (!\extension_loaded('redis')) { self::markTestSkipped('Extension redis required.'); } diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php index 379fcb0d17874..0f460e47a6d9a 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php @@ -30,8 +30,6 @@ class MemcachedSessionHandlerTest extends TestCase protected function setUp(): void { - parent::setUp(); - if (version_compare(phpversion('memcached'), '2.2.0', '>=') && version_compare(phpversion('memcached'), '3.0.0b1', '<')) { $this->markTestSkipped('Tests can only be run with memcached extension 2.1.0 or lower, or 3.0.0b1 or higher'); } diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php index 908acfe15c414..63b0263c2ada2 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php @@ -44,8 +44,6 @@ class MongoDbSessionHandlerTest extends TestCase protected function setUp(): void { - parent::setUp(); - $this->manager = new Manager('mongodb://'.getenv('MONGODB_HOST')); try { diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php index ede4703aa04f7..8106f3da4e70a 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php @@ -30,7 +30,6 @@ protected function tearDown(): void if ($this->dbFile) { @unlink($this->dbFile); } - parent::tearDown(); } protected function getPersistentSqliteDsn() diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MetadataBagTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MetadataBagTest.php index b2f3de42b0e20..3acdcfcacc318 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MetadataBagTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/MetadataBagTest.php @@ -26,7 +26,6 @@ class MetadataBagTest extends TestCase protected function setUp(): void { - parent::setUp(); $this->bag = new MetadataBag(); $this->array = [MetadataBag::CREATED => 1234567, MetadataBag::UPDATED => 12345678, MetadataBag::LIFETIME => 0]; $this->bag->initialize($this->array); diff --git a/src/Symfony/Component/Intl/Tests/IntlTest.php b/src/Symfony/Component/Intl/Tests/IntlTest.php index cc5a3a93d5526..a3dfcb6c2a1f9 100644 --- a/src/Symfony/Component/Intl/Tests/IntlTest.php +++ b/src/Symfony/Component/Intl/Tests/IntlTest.php @@ -20,15 +20,11 @@ class IntlTest extends TestCase protected function setUp(): void { - parent::setUp(); - $this->defaultLocale = \Locale::getDefault(); } protected function tearDown(): void { - parent::tearDown(); - \Locale::setDefault($this->defaultLocale); } diff --git a/src/Symfony/Component/Mailer/Tests/Transport/NativeTransportFactoryTest.php b/src/Symfony/Component/Mailer/Tests/Transport/NativeTransportFactoryTest.php index 28b3c2c61a943..1571766620871 100644 --- a/src/Symfony/Component/Mailer/Tests/Transport/NativeTransportFactoryTest.php +++ b/src/Symfony/Component/Mailer/Tests/Transport/NativeTransportFactoryTest.php @@ -26,8 +26,6 @@ final class NativeTransportFactoryTest extends TestCase public static function setUpBeforeClass(): void { - parent::setUpBeforeClass(); - $namespace = str_replace('\\Tests\\', '\\', __NAMESPACE__); $current = static::class; diff --git a/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/AmqpExtIntegrationTest.php b/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/AmqpExtIntegrationTest.php index cfa93698bacf5..55e55955f91e9 100644 --- a/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/AmqpExtIntegrationTest.php +++ b/src/Symfony/Component/Messenger/Bridge/Amqp/Tests/Transport/AmqpExtIntegrationTest.php @@ -40,8 +40,6 @@ class AmqpExtIntegrationTest extends TestCase { protected function setUp(): void { - parent::setUp(); - if (!getenv('MESSENGER_AMQP_DSN')) { $this->markTestSkipped('The "MESSENGER_AMQP_DSN" environment variable is required.'); } diff --git a/src/Symfony/Component/Routing/Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php b/src/Symfony/Component/Routing/Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php index a7bbefbced148..9bbddf15a85b9 100644 --- a/src/Symfony/Component/Routing/Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php +++ b/src/Symfony/Component/Routing/Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php @@ -33,8 +33,6 @@ class CompiledUrlGeneratorDumperTest extends TestCase protected function setUp(): void { - parent::setUp(); - $this->routeCollection = new RouteCollection(); $this->generatorDumper = new CompiledUrlGeneratorDumper($this->routeCollection); $this->testTmpFilepath = sys_get_temp_dir().'/php_generator.'.$this->getName().'.php'; @@ -45,8 +43,6 @@ protected function setUp(): void protected function tearDown(): void { - parent::tearDown(); - @unlink($this->testTmpFilepath); @unlink($this->largeTestTmpFilepath); } diff --git a/src/Symfony/Component/Routing/Tests/Loader/AttributeClassLoaderTest.php b/src/Symfony/Component/Routing/Tests/Loader/AttributeClassLoaderTest.php index ad65f09c253cc..836277d83a133 100644 --- a/src/Symfony/Component/Routing/Tests/Loader/AttributeClassLoaderTest.php +++ b/src/Symfony/Component/Routing/Tests/Loader/AttributeClassLoaderTest.php @@ -50,8 +50,6 @@ class AttributeClassLoaderTest extends TestCase protected function setUp(?string $env = null): void { - parent::setUp(); - $this->loader = new TraceableAttributeClassLoader($env); } diff --git a/src/Symfony/Component/Routing/Tests/Loader/AttributeDirectoryLoaderTest.php b/src/Symfony/Component/Routing/Tests/Loader/AttributeDirectoryLoaderTest.php index 8ca9d32306509..4877d9a20250f 100644 --- a/src/Symfony/Component/Routing/Tests/Loader/AttributeDirectoryLoaderTest.php +++ b/src/Symfony/Component/Routing/Tests/Loader/AttributeDirectoryLoaderTest.php @@ -27,8 +27,6 @@ class AttributeDirectoryLoaderTest extends TestCase protected function setUp(): void { - parent::setUp(); - $this->classLoader = new TraceableAttributeClassLoader(); $this->loader = new AttributeDirectoryLoader(new FileLocator(), $this->classLoader); } diff --git a/src/Symfony/Component/Routing/Tests/Loader/AttributeFileLoaderTest.php b/src/Symfony/Component/Routing/Tests/Loader/AttributeFileLoaderTest.php index bccbb0a981d2a..6828b6c612338 100644 --- a/src/Symfony/Component/Routing/Tests/Loader/AttributeFileLoaderTest.php +++ b/src/Symfony/Component/Routing/Tests/Loader/AttributeFileLoaderTest.php @@ -33,8 +33,6 @@ class AttributeFileLoaderTest extends TestCase protected function setUp(): void { - parent::setUp(); - $this->classLoader = new TraceableAttributeClassLoader(); $this->loader = new AttributeFileLoader(new FileLocator(), $this->classLoader); } diff --git a/src/Symfony/Component/Routing/Tests/Loader/DirectoryLoaderTest.php b/src/Symfony/Component/Routing/Tests/Loader/DirectoryLoaderTest.php index 2b70d9d5f435b..4315588f2ba4d 100644 --- a/src/Symfony/Component/Routing/Tests/Loader/DirectoryLoaderTest.php +++ b/src/Symfony/Component/Routing/Tests/Loader/DirectoryLoaderTest.php @@ -26,8 +26,6 @@ class DirectoryLoaderTest extends TestCase protected function setUp(): void { - parent::setUp(); - $locator = new FileLocator(); $this->loader = new DirectoryLoader($locator); $resolver = new LoaderResolver([ diff --git a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/CompiledUrlMatcherDumperTest.php b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/CompiledUrlMatcherDumperTest.php index 291a34196a4ee..d6be915a02899 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/CompiledUrlMatcherDumperTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/CompiledUrlMatcherDumperTest.php @@ -28,15 +28,11 @@ class CompiledUrlMatcherDumperTest extends TestCase protected function setUp(): void { - parent::setUp(); - $this->dumpPath = tempnam(sys_get_temp_dir(), 'sf_matcher_'); } protected function tearDown(): void { - parent::tearDown(); - @unlink($this->dumpPath); } diff --git a/src/Symfony/Component/Security/Csrf/Tests/CsrfTokenManagerTest.php b/src/Symfony/Component/Security/Csrf/Tests/CsrfTokenManagerTest.php index 44878b68e4eca..d33adfb4164c8 100644 --- a/src/Symfony/Component/Security/Csrf/Tests/CsrfTokenManagerTest.php +++ b/src/Symfony/Component/Security/Csrf/Tests/CsrfTokenManagerTest.php @@ -546,8 +546,6 @@ protected function setUp(): void protected function tearDown(): void { - parent::tearDown(); - unset($_SERVER['HTTPS']); } } diff --git a/src/Symfony/Component/Translation/Tests/Command/TranslationProviderTestCase.php b/src/Symfony/Component/Translation/Tests/Command/TranslationProviderTestCase.php index 25de727cd842b..d1487828899ee 100644 --- a/src/Symfony/Component/Translation/Tests/Command/TranslationProviderTestCase.php +++ b/src/Symfony/Component/Translation/Tests/Command/TranslationProviderTestCase.php @@ -29,7 +29,6 @@ abstract class TranslationProviderTestCase extends TestCase protected function setUp(): void { - parent::setUp(); $this->defaultLocale = \Locale::getDefault(); \Locale::setDefault('en'); $this->fs = new Filesystem(); @@ -42,7 +41,6 @@ protected function tearDown(): void { \Locale::setDefault($this->defaultLocale); $this->fs->remove($this->translationAppDir); - parent::tearDown(); } protected function getProviderCollection(ProviderInterface $provider, array $providerNames = ['loco'], array $locales = ['en'], array $domains = ['messages']): TranslationProviderCollection diff --git a/src/Symfony/Component/Translation/Tests/LocaleSwitcherTest.php b/src/Symfony/Component/Translation/Tests/LocaleSwitcherTest.php index 8b8f33a7240ab..eb3beee7c502a 100644 --- a/src/Symfony/Component/Translation/Tests/LocaleSwitcherTest.php +++ b/src/Symfony/Component/Translation/Tests/LocaleSwitcherTest.php @@ -25,15 +25,11 @@ class LocaleSwitcherTest extends TestCase protected function setUp(): void { - parent::setUp(); - $this->intlLocale = \Locale::getDefault(); } protected function tearDown(): void { - parent::tearDown(); - \Locale::setDefault($this->intlLocale); } diff --git a/src/Symfony/Component/VarDumper/Tests/Caster/DateCasterTest.php b/src/Symfony/Component/VarDumper/Tests/Caster/DateCasterTest.php index 2ce71c550acd0..9b895ed1c28ad 100644 --- a/src/Symfony/Component/VarDumper/Tests/Caster/DateCasterTest.php +++ b/src/Symfony/Component/VarDumper/Tests/Caster/DateCasterTest.php @@ -29,15 +29,11 @@ class DateCasterTest extends TestCase protected function setUp(): void { - parent::setUp(); - $this->previousTimezone = date_default_timezone_get(); } protected function tearDown(): void { - parent::tearDown(); - date_default_timezone_set($this->previousTimezone); } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy