From ee4f31a695144fc7af4a93cadbdc506e1be583f0 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 9 Oct 2024 11:06:51 +0200 Subject: [PATCH 1/3] run tests using PHPUnit 11.5 --- .github/workflows/integration-tests.yml | 2 +- .github/workflows/psalm.yml | 2 +- .github/workflows/unit-tests.yml | 11 +- .github/workflows/windows.yml | 137 +++++++++++++----- .gitignore | 1 + phpunit | 2 +- phpunit.xml.dist | 36 ++--- .../EntityValueResolverTest.php | 9 +- .../PropertyInfo/DoctrineExtractorTest.php | 28 +--- .../Constraints/UniqueEntityTest.php | 5 +- .../Constraints/UniqueEntityValidatorTest.php | 49 ++----- src/Symfony/Bridge/Doctrine/composer.json | 2 +- src/Symfony/Bridge/Doctrine/phpunit.xml.dist | 26 ++-- src/Symfony/Bridge/Monolog/phpunit.xml.dist | 11 +- .../PhpUnit/Tests/CoverageListenerTest.php | 5 +- .../ConfigurationTest.php | 5 +- .../Tests/ExpectDeprecationTraitTest.php | 5 +- .../ExpectedDeprecationAnnotationTest.php | 5 +- .../ExpectDeprecationTraitTestFail.php | 4 +- .../FailTests/NoAssertionsTestNotRisky.php | 4 +- .../Tests/FailTests/NoAssertionsTestRisky.php | 4 +- .../PhpUnit/Tests/ProcessIsolationTest.php | 4 +- src/Symfony/Bridge/PhpUnit/phpunit.xml.dist | 7 +- .../Bridge/PsrHttpMessage/composer.json | 8 +- .../Bridge/PsrHttpMessage/phpunit.xml.dist | 11 +- .../Twig/Tests/Command/LintCommandTest.php | 4 +- .../Constraints/TwigValidatorTest.php | 4 +- src/Symfony/Bridge/Twig/phpunit.xml.dist | 11 +- .../Bundle/DebugBundle/phpunit.xml.dist | 11 +- .../Descriptor/AbstractDescriptorTestCase.php | 17 +-- .../Tests/Functional/PropertyInfoTest.php | 5 +- .../Bundle/FrameworkBundle/composer.json | 8 +- .../Bundle/FrameworkBundle/phpunit.xml.dist | 11 +- .../MainConfigurationTest.php | 12 +- .../Factory/AccessTokenFactoryTest.php | 9 +- .../Bundle/SecurityBundle/composer.json | 12 +- .../Bundle/SecurityBundle/phpunit.xml.dist | 11 +- .../DependencyInjection/TwigExtensionTest.php | 12 +- src/Symfony/Bundle/TwigBundle/composer.json | 12 +- .../Bundle/TwigBundle/phpunit.xml.dist | 11 +- .../Bundle/WebProfilerBundle/composer.json | 12 +- .../Bundle/WebProfilerBundle/phpunit.xml.dist | 11 +- src/Symfony/Component/Asset/phpunit.xml.dist | 11 +- .../ImportMap/ImportMapConfigReaderTest.php | 8 +- .../Component/AssetMapper/composer.json | 14 +- .../Component/AssetMapper/phpunit.xml.dist | 11 +- .../Component/BrowserKit/phpunit.xml.dist | 11 +- .../Adapter/CouchbaseBucketAdapterTest.php | 15 +- src/Symfony/Component/Cache/phpunit.xml.dist | 29 ++-- src/Symfony/Component/Clock/phpunit.xml.dist | 11 +- src/Symfony/Component/Config/phpunit.xml.dist | 11 +- .../Console/Tests/Command/CommandTest.php | 20 +-- .../Component/Console/phpunit.xml.dist | 21 ++- .../Component/CssSelector/phpunit.xml.dist | 11 +- .../Tests/Compiler/AutowirePassTest.php | 5 +- .../RegisterServiceSubscribersPassTest.php | 5 +- .../ResolveReferencesToAliasesPassTest.php | 10 +- .../Tests/ContainerBuilderTest.php | 17 +-- .../Tests/Dumper/PhpDumperTest.php | 13 +- .../Tests/Loader/XmlFileLoaderTest.php | 8 +- .../Tests/Loader/YamlFileLoaderTest.php | 8 +- .../ParameterBag/FrozenParameterBagTest.php | 7 +- .../Tests/ParameterBag/ParameterBagTest.php | 13 +- .../DependencyInjection/composer.json | 2 +- .../DependencyInjection/phpunit.xml.dist | 11 +- .../Component/DomCrawler/phpunit.xml.dist | 11 +- src/Symfony/Component/Dotenv/phpunit.xml.dist | 11 +- src/Symfony/Component/Emoji/phpunit.xml.dist | 11 +- .../ErrorHandler/Tests/ErrorHandlerTest.php | 32 +++- .../Component/ErrorHandler/phpunit.xml.dist | 11 +- .../EventDispatcher/phpunit.xml.dist | 11 +- .../ExpressionLanguage/phpunit.xml.dist | 11 +- .../Component/Filesystem/phpunit.xml.dist | 11 +- src/Symfony/Component/Finder/phpunit.xml.dist | 11 +- .../EventListener/ResizeFormListenerTest.php | 13 +- .../Tests/Extension/Core/Type/UrlTypeTest.php | 8 +- src/Symfony/Component/Form/composer.json | 2 +- src/Symfony/Component/Form/phpunit.xml.dist | 11 +- .../Component/HtmlSanitizer/phpunit.xml.dist | 11 +- .../Component/HttpClient/phpunit.xml.dist | 11 +- .../cookie_urlencode.expected | 6 +- .../Storage/NativeSessionStorageTest.php | 44 +++--- .../Component/HttpFoundation/phpunit.xml.dist | 11 +- .../AddAnnotatedClassesToCachePassTest.php | 5 +- ...sterControllerArgumentLocatorsPassTest.php | 5 +- .../Component/HttpKernel/phpunit.xml.dist | 21 ++- src/Symfony/Component/Intl/phpunit.xml.dist | 11 +- .../Component/JsonPath/phpunit.xml.dist | 11 +- .../CacheWarmer/LazyGhostCacheWarmerTest.php | 5 +- .../Component/JsonStreamer/phpunit.xml.dist | 11 +- .../Ldap/Tests/Adapter/AbstractQueryTest.php | 8 +- src/Symfony/Component/Ldap/phpunit.xml.dist | 11 +- src/Symfony/Component/Lock/phpunit.xml.dist | 11 +- .../Mailer/Bridge/AhaSend/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Amazon/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Azure/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Brevo/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Google/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Infobip/phpunit.xml.dist | 11 +- .../Mailer/Bridge/MailPace/phpunit.xml.dist | 25 ++-- .../Mailer/Bridge/Mailchimp/phpunit.xml.dist | 11 +- .../Mailer/Bridge/MailerSend/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Mailgun/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Mailjet/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Mailomat/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Mailtrap/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Postal/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Postmark/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Resend/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Scaleway/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Sendgrid/phpunit.xml.dist | 11 +- .../Mailer/Bridge/Sweego/phpunit.xml.dist | 11 +- src/Symfony/Component/Mailer/phpunit.xml.dist | 11 +- .../Bridge/AmazonSqs/phpunit.xml.dist | 11 +- .../Messenger/Bridge/Amqp/phpunit.xml.dist | 11 +- .../Bridge/Beanstalkd/phpunit.xml.dist | 11 +- .../Bridge/Doctrine/phpunit.xml.dist | 11 +- .../Messenger/Bridge/Redis/phpunit.xml.dist | 11 +- .../Component/Messenger/phpunit.xml.dist | 11 +- src/Symfony/Component/Mime/phpunit.xml.dist | 11 +- .../Notifier/Bridge/AllMySms/phpunit.xml.dist | 11 +- .../Bridge/AmazonSns/phpunit.xml.dist | 25 ++-- .../Bridge/Bandwidth/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Bluesky/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Brevo/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Chatwork/phpunit.xml.dist | 25 ++-- .../Bridge/ClickSend/phpunit.xml.dist | 25 ++-- .../Bridge/Clickatell/phpunit.xml.dist | 11 +- .../Bridge/ContactEveryone/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Discord/phpunit.xml.dist | 11 +- .../Bridge/Engagespot/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Esendex/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Expo/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/FakeChat/phpunit.xml.dist | 11 +- .../Notifier/Bridge/FakeSms/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Firebase/phpunit.xml.dist | 11 +- .../Bridge/FortySixElks/phpunit.xml.dist | 25 ++-- .../Bridge/FreeMobile/phpunit.xml.dist | 11 +- .../Bridge/GatewayApi/phpunit.xml.dist | 11 +- .../Notifier/Bridge/GoIp/phpunit.xml.dist | 25 ++-- .../Bridge/GoogleChat/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Infobip/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Iqsms/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Isendpro/phpunit.xml.dist | 11 +- .../Bridge/JoliNotif/phpunit.xml.dist | 11 +- .../Bridge/KazInfoTeh/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/LightSms/phpunit.xml.dist | 11 +- .../Notifier/Bridge/LineBot/phpunit.xml.dist | 25 ++-- .../Bridge/LineNotify/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/LinkedIn/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Lox24/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Mailjet/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Mastodon/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Matrix/phpunit.xml.dist | 11 +- .../Bridge/Mattermost/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Mercure/phpunit.xml.dist | 11 +- .../Bridge/MessageBird/phpunit.xml.dist | 11 +- .../Bridge/MessageMedia/phpunit.xml.dist | 25 ++-- .../Bridge/MicrosoftTeams/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Mobyt/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Novu/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Ntfy/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Octopush/phpunit.xml.dist | 11 +- .../Bridge/OneSignal/phpunit.xml.dist | 25 ++-- .../Bridge/OrangeSms/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/OvhCloud/phpunit.xml.dist | 11 +- .../Bridge/PagerDuty/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Plivo/phpunit.xml.dist | 25 ++-- .../Bridge/Primotexto/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Pushover/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Pushy/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Redlink/phpunit.xml.dist | 11 +- .../Bridge/RingCentral/phpunit.xml.dist | 25 ++-- .../Bridge/RocketChat/phpunit.xml.dist | 11 +- .../Bridge/Sendberry/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Sevenio/phpunit.xml.dist | 25 ++-- .../Bridge/SimpleTextin/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Sinch/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Sipgate/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Slack/phpunit.xml.dist | 11 +- .../Sms77/Tests/Sms77TransportFactoryTest.php | 5 +- .../Bridge/Sms77/Tests/Sms77TransportTest.php | 5 +- .../Notifier/Bridge/Sms77/phpunit.xml.dist | 25 ++-- .../Bridge/SmsBiuras/phpunit.xml.dist | 11 +- .../Bridge/SmsFactor/phpunit.xml.dist | 25 ++-- .../Bridge/SmsSluzba/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Smsapi/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Smsbox/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Smsc/phpunit.xml.dist | 23 +-- .../Notifier/Bridge/Smsense/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Smsmode/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/SpotHit/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Sweego/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Telegram/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Telnyx/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Termii/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/TurboSms/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Twilio/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Twitter/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Unifonic/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Vonage/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Yunpian/phpunit.xml.dist | 25 ++-- .../Notifier/Bridge/Zendesk/phpunit.xml.dist | 11 +- .../Notifier/Bridge/Zulip/phpunit.xml.dist | 11 +- .../Component/Notifier/phpunit.xml.dist | 11 +- .../Component/ObjectMapper/phpunit.xml.dist | 11 +- .../Tests/OptionsResolverTest.php | 112 ++++---------- .../OptionsResolver/phpunit.xml.dist | 11 +- .../Component/PasswordHasher/phpunit.xml.dist | 11 +- .../Component/Process/phpunit.xml.dist | 11 +- .../Component/PropertyAccess/phpunit.xml.dist | 11 +- .../AbstractPropertyInfoExtractorTest.php | 5 +- .../Extractor/ConstructorExtractorTest.php | 12 +- .../Tests/Extractor/PhpDocExtractorTest.php | 112 ++++---------- .../Tests/Extractor/PhpStanExtractorTest.php | 135 +++++------------ .../Extractor/ReflectionExtractorTest.php | 72 +++------ .../Tests/PropertyInfoCacheExtractorTest.php | 16 +- .../Tests/PropertyInfoExtractorTest.php | 9 +- .../Component/PropertyInfo/Tests/TypeTest.php | 4 +- .../Component/PropertyInfo/phpunit.xml.dist | 11 +- .../Component/RateLimiter/phpunit.xml.dist | 11 +- .../Component/RemoteEvent/phpunit.xml.dist | 11 +- .../Dumper/CompiledUrlGeneratorDumperTest.php | 16 +- .../Tests/Generator/UrlGeneratorTest.php | 16 +- .../Component/Routing/phpunit.xml.dist | 11 +- .../Component/Runtime/phpunit.xml.dist | 11 +- .../Component/Scheduler/phpunit.xml.dist | 11 +- .../Token/AbstractTokenTest.php | 8 +- .../Token/RememberMeTokenTest.php | 5 +- .../Core/Tests/User/InMemoryUserTest.php | 10 +- .../Component/Security/Core/phpunit.xml.dist | 11 +- .../Component/Security/Csrf/phpunit.xml.dist | 11 +- .../AuthenticatorManagerBCTest.php | 82 +++-------- .../AuthenticatorManagerTest.php | 12 +- .../Passport/Badge/UserBadgeTest.php | 8 +- .../Component/Security/Http/phpunit.xml.dist | 11 +- .../Component/Semaphore/phpunit.xml.dist | 11 +- .../CompiledClassMetadataCacheWarmerTest.php | 5 +- .../Encoder/CsvEncoderContextBuilderTest.php | 12 +- .../Tests/Encoder/CsvEncoderTest.php | 8 +- .../CompiledClassMetadataFactoryTest.php | 4 +- .../Component/Serializer/phpunit.xml.dist | 11 +- .../Component/Stopwatch/phpunit.xml.dist | 11 +- src/Symfony/Component/String/phpunit.xml.dist | 11 +- .../Bridge/Crowdin/phpunit.xml.dist | 11 +- .../Translation/Bridge/Loco/.gitignore | 1 + .../Translation/Bridge/Loco/phpunit.xml.dist | 11 +- .../Bridge/Lokalise/phpunit.xml.dist | 11 +- .../Translation/Bridge/Phrase/.gitignore | 1 + .../Bridge/Phrase/phpunit.xml.dist | 11 +- .../Tests/Loader/CsvFileLoaderTest.php | 8 +- .../Component/Translation/composer.json | 2 +- .../Component/Translation/phpunit.xml.dist | 11 +- .../Tests/Type/CollectionTypeTest.php | 8 +- .../TypeInfo/Tests/TypeFactoryTest.php | 8 +- .../Component/TypeInfo/phpunit.xml.dist | 11 +- src/Symfony/Component/Uid/phpunit.xml.dist | 20 +-- .../Tests/Constraints/ChoiceValidatorTest.php | 36 ++--- .../Tests/Constraints/CollectionTest.php | 9 +- .../Tests/Constraints/CompoundTest.php | 5 +- .../Constraints/CountValidatorTestCase.php | 44 ++---- .../Constraints/DisableAutoMappingTest.php | 5 +- .../Validator/Tests/Constraints/EmailTest.php | 9 +- .../Constraints/EnableAutoMappingTest.php | 5 +- .../Constraints/ExpressionSyntaxTest.php | 5 +- .../Constraints/FileValidatorTestCase.php | 9 +- ...idatorWithPositiveOrZeroConstraintTest.php | 9 +- ...hanValidatorWithPositiveConstraintTest.php | 9 +- .../Tests/Constraints/ImageValidatorTest.php | 56 ++----- .../Validator/Tests/Constraints/IpTest.php | 9 +- .../Constraints/IsFalseValidatorTest.php | 5 +- .../Tests/Constraints/IsTrueValidatorTest.php | 5 +- .../Tests/Constraints/IsbnValidatorTest.php | 16 +- .../Tests/Constraints/LengthTest.php | 9 +- ...idatorWithNegativeOrZeroConstraintTest.php | 9 +- ...hanValidatorWithNegativeConstraintTest.php | 9 +- .../Tests/Constraints/NotBlankTest.php | 9 +- .../NotCompromisedPasswordValidatorTest.php | 9 +- .../Constraints/NotNullValidatorTest.php | 5 +- .../Validator/Tests/Constraints/RangeTest.php | 21 +-- .../Tests/Constraints/RangeValidatorTest.php | 72 +++------ .../Validator/Tests/Constraints/RegexTest.php | 9 +- .../Tests/Constraints/RegexValidatorTest.php | 16 +- .../Tests/Constraints/TypeValidatorTest.php | 5 +- .../Tests/Constraints/UniqueTest.php | 9 +- .../Validator/Tests/Constraints/UrlTest.php | 13 +- .../Validator/Tests/Constraints/UuidTest.php | 9 +- .../Validator/Tests/Constraints/WhenTest.php | 5 +- .../Mapping/Loader/XmlFileLoaderTest.php | 8 +- .../Mapping/Loader/YamlFileLoaderTest.php | 8 +- .../Component/Validator/phpunit.xml.dist | 11 +- .../Tests/Caster/DoctrineCasterTest.php | 4 +- .../Tests/Caster/ResourceCasterTest.php | 18 +-- .../Component/VarDumper/phpunit.xml.dist | 11 +- .../Tests/LegacyLazyGhostTraitTest.php | 5 +- .../Tests/LegacyLazyProxyTraitTest.php | 9 +- .../Tests/LegacyProxyHelperTest.php | 9 +- .../Component/VarExporter/phpunit.xml.dist | 11 +- .../Component/WebLink/phpunit.xml.dist | 11 +- .../Component/Webhook/phpunit.xml.dist | 11 +- .../Component/Workflow/phpunit.xml.dist | 11 +- .../Component/Yaml/Tests/ParserTest.php | 8 +- src/Symfony/Component/Yaml/phpunit.xml.dist | 11 +- .../Service/Test/ServiceLocatorTest.php | 14 +- .../Service/ServiceSubscriberTraitTest.php | 5 +- src/Symfony/Contracts/phpunit.xml.dist | 10 +- 306 files changed, 2443 insertions(+), 2094 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index a2a3f8853882a..ef588d7fb8038 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -251,7 +251,7 @@ jobs: git diff --exit-code src/ || (echo '::error::Run "php .github/sync-translations.php" to fix XLIFF files.' && exit 1) - name: Run tests - run: ./phpunit --group integration -v + run: ./phpunit --group integration env: INTEGRATION_FTP_URL: 'ftp://test:test@localhost' REDIS_HOST: 'localhost:16379' diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 33a5f58b44c6a..1a8ff5f95247b 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -43,7 +43,7 @@ jobs: ([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json" export COMPOSER_ROOT_VERSION=$(grep ' VERSION = ' src/Symfony/Component/HttpKernel/Kernel.php | grep -P -o '[0-9]+\.[0-9]+').x-dev composer remove --dev --no-update --no-interaction symfony/phpunit-bridge - composer require --no-progress --ansi --no-plugins psalm/phar:@stable phpunit/phpunit:^9.6 php-http/discovery psr/event-dispatcher mongodb/mongodb jetbrains/phpstorm-stubs + composer require --no-progress --ansi --no-plugins psalm/phar:@stable phpunit/phpunit:^11.5 php-http/discovery psr/event-dispatcher mongodb/mongodb jetbrains/phpstorm-stubs - name: Generate Psalm baseline run: | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index bf81825134aed..828394fdd1543 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -76,7 +76,7 @@ jobs: ([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json" echo COLUMNS=120 >> $GITHUB_ENV - echo PHPUNIT="$(pwd)/phpunit --exclude-group tty,benchmark,intl-data,integration" >> $GITHUB_ENV + echo PHPUNIT="$(pwd)/phpunit --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group integration" >> $GITHUB_ENV echo COMPOSER_UP='composer update --no-progress --ansi'$([[ "${{ matrix.mode }}" != low-deps ]] && echo ' --ignore-platform-req=php+') >> $GITHUB_ENV SYMFONY_VERSIONS=$(git ls-remote -q --heads | cut -f2 | grep -o '/[1-9][0-9]*\.[0-9].*' | sort -V) @@ -103,7 +103,6 @@ jobs: if [[ ! "${{ matrix.mode }}" = *-deps ]]; then php .github/build-packages.php HEAD^ $SYMFONY_VERSION src/Symfony/Bridge/PhpUnit else - echo SYMFONY_DEPRECATIONS_HELPER=weak >> $GITHUB_ENV cp composer.json composer.json.orig echo -e '{\n"require":{'"$(grep phpunit-bridge composer.json)"'"php":"*"},"minimum-stability":"dev"}' > composer.json php .github/build-packages.php HEAD^ $SYMFONY_VERSION $(find src/Symfony -mindepth 2 -type f -name composer.json -printf '%h\n' | grep -v src/Symfony/Component/Emoji/Resources/bin) @@ -244,12 +243,12 @@ jobs: mkdir -p /opt/php/lib echo memory_limit=-1 > /opt/php/lib/php.ini - ./build/php/bin/php ./phpunit --colors=always src/Symfony/Component/Process + ./phpunit install + ./build/php/bin/php ./phpunit src/Symfony/Component/Process - - name: Run PhpUnitBridge tests with PHPUnit 11 + - name: Run PhpUnitBridge tests with PHPUnit 9.6 if: '! matrix.mode' run: | ./phpunit src/Symfony/Bridge/PhpUnit env: - SYMFONY_PHPUNIT_VERSION: '11.3' - SYMFONY_DEPRECATIONS_HELPER: 'disabled' + SYMFONY_PHPUNIT_VERSION: '9.6' diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 62ab3e5e6a3aa..b0235e7152205 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -12,7 +12,7 @@ permissions: contents: read jobs: - windows: + windows-minimal-exts: name: x86 / minimal-exts / lowest-php defaults: @@ -23,7 +23,6 @@ jobs: env: COMPOSER_NO_INTERACTION: '1' - SYMFONY_DEPRECATIONS_HELPER: 'strict' ANSICON: '121x90 (121x90)' SYMFONY_PHPUNIT_DISABLE_RESULT_CACHE: '1' @@ -51,30 +50,17 @@ jobs: iwr -outf php_redis-6.0.0-dev-8.2-ts-vs16-x86.zip https://github.com/symfony/binary-utils/releases/download/v0.1/php_redis-6.0.0-dev-8.2-ts-vs16-x86.zip 7z x php_redis-6.0.0-dev-8.2-ts-vs16-x86.zip -y >nul cd .. - Copy php.ini-development php.ini-min - "memory_limit=-1" >> php.ini-min - "serialize_precision=-1" >> php.ini-min - "max_execution_time=1200" >> php.ini-min - "post_max_size=2047M" >> php.ini-min - "upload_max_filesize=2047M" >> php.ini-min - "date.timezone=`"America/Los_Angeles`"" >> php.ini-min - "extension_dir=ext" >> php.ini-min - "extension=php_xsl.dll" >> php.ini-min - "extension=php_mbstring.dll" >> php.ini-min - Copy php.ini-min php.ini-max - "zend_extension=php_opcache.dll" >> php.ini-max - "opcache.enable_cli=1" >> php.ini-max - "extension=php_openssl.dll" >> php.ini-max - "extension=php_apcu.dll" >> php.ini-max - "extension=php_igbinary.dll" >> php.ini-max - "extension=php_redis.dll" >> php.ini-max - "apc.enable_cli=1" >> php.ini-max - "extension=php_intl.dll" >> php.ini-max - "extension=php_fileinfo.dll" >> php.ini-max - "extension=php_pdo_sqlite.dll" >> php.ini-max - "extension=php_curl.dll" >> php.ini-max - "extension=php_sodium.dll" >> php.ini-max - Copy php.ini-max php.ini + Copy php.ini-development php.ini + "memory_limit=-1" >> php.ini + "serialize_precision=-1" >> php.ini + "max_execution_time=1200" >> php.ini + "post_max_size=2047M" >> php.ini + "upload_max_filesize=2047M" >> php.ini + "date.timezone=`"America/Los_Angeles`"" >> php.ini + "extension_dir=ext" >> php.ini + "extension=php_xsl.dll" >> php.ini + "extension=php_mbstring.dll" >> php.ini + "extension=php_openssl.dll" >> php.ini cd ${{ github.workspace }} iwr -outf composer.phar https://getcomposer.org/download/latest-stable/composer.phar @@ -100,32 +86,111 @@ jobs: run: | choco install --no-progress memurai-developer - - name: Run tests (minimal extensions) - if: always() && steps.setup.outcome == 'success' + - name: Run tests run: | $env:Path = 'c:\php;' + $env:Path - $env:SYMFONY_PHPUNIT_SKIPPED_TESTS = 'phpunit.skipped' $x = 0 - Copy c:\php\php.ini-min c:\php\php.ini Remove-Item -Path src\Symfony\Bridge\PhpUnit -Recurse mv src\Symfony\Component\HttpClient\phpunit.xml.dist src\Symfony\Component\HttpClient\phpunit.xml - php phpunit src\Symfony --exclude-group tty,benchmark,intl-data,network,transient-on-windows || ($x = 1) + php phpunit src\Symfony --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group network --exclude-group transient-on-windows || ($x = 1) # HttpClient tests need to run separately, they block when run with other components' tests concurrently php phpunit src\Symfony\Component\HttpClient || ($x = 1) exit $x + windows-all-extensions: + name: x86 / all extensions / lowest-php + + defaults: + run: + shell: pwsh + + runs-on: windows-2022 + + env: + COMPOSER_NO_INTERACTION: '1' + ANSICON: '121x90 (121x90)' + SYMFONY_PHPUNIT_DISABLE_RESULT_CACHE: '1' + + steps: + - name: Setup Git + run: | + git config --global core.autocrlf false + git config --global user.email "" + git config --global user.name "Symfony" + + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 2 + + - name: Setup PHP + run: | + $env:Path = 'c:\php;' + $env:Path + mkdir c:\php && cd c:\php + iwr -outf php-8.2.0-Win32-vs16-x86.zip https://github.com/symfony/binary-utils/releases/download/v0.1/php-8.2.0-Win32-vs16-x86.zip + 7z x php-8.2.0-Win32-vs16-x86.zip -y >nul + cd ext + iwr -outf php_apcu-5.1.22-8.2-ts-vs16-x86.zip https://github.com/symfony/binary-utils/releases/download/v0.1/php_apcu-5.1.22-8.2-ts-vs16-x86.zip + 7z x php_apcu-5.1.22-8.2-ts-vs16-x86.zip -y >nul + iwr -outf php_redis-6.0.0-dev-8.2-ts-vs16-x86.zip https://github.com/symfony/binary-utils/releases/download/v0.1/php_redis-6.0.0-dev-8.2-ts-vs16-x86.zip + 7z x php_redis-6.0.0-dev-8.2-ts-vs16-x86.zip -y >nul + cd .. + Copy php.ini-development php.ini + "memory_limit=-1" >> php.ini + "serialize_precision=-1" >> php.ini + "max_execution_time=1200" >> php.ini + "post_max_size=2047M" >> php.ini + "upload_max_filesize=2047M" >> php.ini + "date.timezone=`"America/Los_Angeles`"" >> php.ini + "extension_dir=ext" >> php.ini + "extension=php_xsl.dll" >> php.ini + "extension=php_mbstring.dll" >> php.ini + "zend_extension=php_opcache.dll" >> php.ini + "opcache.enable_cli=1" >> php.ini + "extension=php_openssl.dll" >> php.ini + "extension=php_apcu.dll" >> php.ini + "extension=php_igbinary.dll" >> php.ini + "extension=php_redis.dll" >> php.ini + "apc.enable_cli=1" >> php.ini + "extension=php_intl.dll" >> php.ini + "extension=php_fileinfo.dll" >> php.ini + "extension=php_pdo_sqlite.dll" >> php.ini + "extension=php_curl.dll" >> php.ini + "extension=php_sodium.dll" >> php.ini + cd ${{ github.workspace }} + iwr -outf composer.phar https://getcomposer.org/download/latest-stable/composer.phar + + - name: Install dependencies + id: setup + run: | + $env:Path = 'c:\php;' + $env:Path + mkdir $env:APPDATA\Composer && Copy .github\composer-config.json $env:APPDATA\Composer\config.json + + $env:SYMFONY_VERSION=(Select-String -CaseSensitive -Pattern " VERSION =" -SimpleMatch -Path src/Symfony/Component/HttpKernel/Kernel.php | Select Line | Select-String -Pattern "([0-9][0-9]*\.[0-9])").Matches.Value + $env:COMPOSER_ROOT_VERSION=$env:SYMFONY_VERSION + ".x-dev" + + php .github/build-packages.php HEAD^ $env:SYMFONY_VERSION src\Symfony\Bridge\PhpUnit + php composer.phar update --no-progress --ansi + + - name: Install PHPUnit + run: | + $env:Path = 'c:\php;' + $env:Path + + php phpunit install + + - name: Install memurai-developer + run: | + choco install --no-progress memurai-developer + - name: Run tests - if: always() && steps.setup.outcome == 'success' run: | $env:Path = 'c:\php;' + $env:Path - $env:SYMFONY_PHPUNIT_SKIPPED_TESTS = 'phpunit.skipped' $x = 0 - Copy c:\php\php.ini-max c:\php\php.ini - php phpunit src\Symfony --exclude-group tty,benchmark,intl-data,network,transient-on-windows || ($x = 1) + php phpunit src\Symfony --exclude-group tty --exclude-group benchmark --exclude-group intl-data --exclude-group network --exclude-group transient-on-windows --requires-php-extension apcu --requires-php-extension curl --requires-php-extension fileinfo --requires-php-extension igbinary --requires-php-extension intl --requires-php-extension openssl --requires-php-extension pdo_sqlite --requires-php-extension redis --requires-php-extension sodium || ($x = 1) # HttpClient tests need to run separately, they block when run with other components' tests concurrently - php phpunit src\Symfony\Component\HttpClient || ($x = 1) + php phpunit src\Symfony\Component\HttpClient --requires-php-extension curl --requires-php-extension openssl || ($x = 1) exit $x diff --git a/.gitignore b/.gitignore index 0c37517192aba..61ade23d815fb 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ composer.lock phpunit.xml .php-cs-fixer.cache .php-cs-fixer.php +.phpunit.cache .phpunit.result.cache composer.phar package.tar diff --git a/phpunit b/phpunit index dafe2953a0aa6..7df0a0099f7b6 100755 --- a/phpunit +++ b/phpunit @@ -6,7 +6,7 @@ if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) { exit(1); } if (!getenv('SYMFONY_PHPUNIT_VERSION')) { - putenv('SYMFONY_PHPUNIT_VERSION=9.6'); + putenv('SYMFONY_PHPUNIT_VERSION=11.5'); } if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS')) { putenv('SYMFONY_PATCH_TYPE_DECLARATIONS=deprecations=1'); diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 6909669ee14a8..72aee6a3002db 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -46,7 +47,7 @@ - + ./src/Symfony/ @@ -54,7 +55,7 @@ ./src/Symfony/Bridge/*/Tests ./src/Symfony/Component/*/Tests ./src/Symfony/Component/*/*/Tests - ./src/Symfony/Contract/*/Tests + ./src/Symfony/Contracts/*/Tests ./src/Symfony/Bundle/*/Tests ./src/Symfony/Bundle/*/Resources ./src/Symfony/Component/*/Resources @@ -65,28 +66,11 @@ ./src/Symfony/Component/*/*/vendor ./src/Symfony/Contracts/*/vendor - + - - - - - - - Cache\IntegrationTests - Symfony\Bridge\Doctrine\Middleware\Debug - Symfony\Bridge\Doctrine\Middleware\IdleConnection - Symfony\Component\Cache - Symfony\Component\Cache\Tests\Fixtures - Symfony\Component\Cache\Tests\Traits - Symfony\Component\Cache\Traits - Symfony\Component\Console - Symfony\Component\HttpFoundation - Symfony\Component\Uid - - - - - - + + + + + diff --git a/src/Symfony/Bridge/Doctrine/Tests/ArgumentResolver/EntityValueResolverTest.php b/src/Symfony/Bridge/Doctrine/Tests/ArgumentResolver/EntityValueResolverTest.php index 8207317803857..8410657838972 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/ArgumentResolver/EntityValueResolverTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/ArgumentResolver/EntityValueResolverTest.php @@ -16,6 +16,7 @@ use Doctrine\Persistence\Mapping\ClassMetadata; use Doctrine\Persistence\ObjectManager; use Doctrine\Persistence\ObjectRepository; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\ArgumentResolver\EntityValueResolver; @@ -64,9 +65,7 @@ public function testResolveWithoutManager() $this->assertSame([], $resolver->resolve($request, $argument)); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testResolveWithNoIdAndDataOptional() { $manager = $this->createMock(ObjectManager::class); @@ -251,9 +250,7 @@ public static function idsProvider(): iterable yield ['foo']; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testResolveGuessOptional() { $manager = $this->createMock(ObjectManager::class); diff --git a/src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php b/src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php index 04817d9389049..007cc20a0e7e8 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php @@ -20,6 +20,8 @@ use Doctrine\ORM\EntityManager; use Doctrine\ORM\Mapping\Driver\AttributeDriver; use Doctrine\ORM\ORMSetup; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor; use Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures\DoctrineDummy; @@ -30,7 +32,6 @@ use Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures\DoctrineWithEmbedded; use Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures\EnumInt; use Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures\EnumString; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\PropertyInfo\Type as LegacyType; use Symfony\Component\TypeInfo\Type; @@ -39,8 +40,6 @@ */ class DoctrineExtractorTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private function createExtractor(): DoctrineExtractor { $config = ORMSetup::createConfiguration(true); @@ -110,11 +109,8 @@ public function testTestGetPropertiesWithEmbedded() ); } - /** - * @group legacy - * - * @dataProvider legacyTypesProvider - */ + #[IgnoreDeprecations] + #[DataProvider('legacyTypesProvider')] public function testExtractLegacy(string $property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor::getTypes()" method is deprecated, use "Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor::getType()" instead.'); @@ -122,9 +118,7 @@ public function testExtractLegacy(string $property, ?array $type = null) $this->assertEquals($type, $this->createExtractor()->getTypes(DoctrineDummy::class, $property, [])); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testExtractWithEmbeddedLegacy() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor::getTypes()" method is deprecated, use "Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor::getType()" instead.'); @@ -144,9 +138,7 @@ public function testExtractWithEmbeddedLegacy() $this->assertEquals($expectedTypes, $actualTypes); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testExtractEnumLegacy() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor::getTypes()" method is deprecated, use "Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor::getType()" instead.'); @@ -158,9 +150,7 @@ public function testExtractEnumLegacy() $this->assertNull($this->createExtractor()->getTypes(DoctrineEnum::class, 'enumCustom', [])); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public static function legacyTypesProvider(): array { // DBAL 4 has a special fallback strategy for BINGINT (int -> string) @@ -260,9 +250,7 @@ public function testGetPropertiesCatchException() $this->assertNull($this->createExtractor()->getProperties('Not\Exist')); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testGetTypesCatchExceptionLegacy() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor::getTypes()" method is deprecated, use "Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor::getType()" instead.'); diff --git a/src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityTest.php b/src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityTest.php index a3015722cea8d..fcae34752139c 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bridge\Doctrine\Tests\Validator\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Component\Validator\Mapping\ClassMetadata; @@ -61,9 +62,7 @@ public function testAttributeWithGroupsAndPaylod() self::assertSame(['some_group'], $constraint->groups); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testValueOptionConfiguresFields() { $constraint = new UniqueEntity(['value' => 'email']); diff --git a/src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php b/src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php index 4f93768cddf7c..76bfc7250d1f6 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php @@ -17,6 +17,7 @@ use Doctrine\ORM\Tools\SchemaTool; use Doctrine\Persistence\ManagerRegistry; use Doctrine\Persistence\ObjectManager; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\MockObject\MockObject; use Symfony\Bridge\Doctrine\Tests\DoctrineTestHelper; use Symfony\Bridge\Doctrine\Tests\Fixtures\AssociatedEntityDto; @@ -185,9 +186,7 @@ public function testValidateEntityWithPrivatePropertyAndProxyObject() $this->assertNoViolation(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testValidateEntityWithPrivatePropertyAndProxyObjectDoctrineStyle() { $entity = new SingleIntIdWithPrivateNameEntity(1, 'Foo'); @@ -226,9 +225,7 @@ public function testValidateCustomErrorPath() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testValidateCustomErrorPathDoctrineStyle() { $entity1 = new SingleIntIdEntity(1, 'Foo'); @@ -954,9 +951,7 @@ public function testValidateDTOUniqueness() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testValidateDTOUniquenessDoctrineStyle() { $constraint = new UniqueEntity([ @@ -1017,9 +1012,7 @@ public function testValidateMappingOfFieldNames() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testValidateMappingOfFieldNamesDoctrineStyle() { $constraint = new UniqueEntity([ @@ -1061,9 +1054,7 @@ public function testInvalidateDTOFieldName() $this->validator->validate($dto, $constraint); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidateDTOFieldNameDoctrineStyle() { $this->expectException(ConstraintDefinitionException::class); @@ -1094,9 +1085,7 @@ public function testInvalidateEntityFieldName() $this->validator->validate($dto, $constraint); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidateEntityFieldNameDoctrineStyle() { $this->expectException(ConstraintDefinitionException::class); @@ -1142,9 +1131,7 @@ public function testValidateDTOUniquenessWhenUpdatingEntity() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testValidateDTOUniquenessWhenUpdatingEntityDoctrineStyle() { $constraint = new UniqueEntity([ @@ -1197,9 +1184,7 @@ public function testValidateDTOUniquenessWhenUpdatingEntityWithTheSameValue() $this->assertNoViolation(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testValidateDTOUniquenessWhenUpdatingEntityWithTheSameValueDoctrineStyle() { $constraint = new UniqueEntity([ @@ -1251,9 +1236,7 @@ public function testValidateIdentifierMappingOfFieldNames() $this->assertNoViolation(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testValidateIdentifierMappingOfFieldNamesDoctrineStyle() { $constraint = new UniqueEntity([ @@ -1311,9 +1294,7 @@ public function testInvalidateMissingIdentifierFieldName() $this->validator->validate($dto, $constraint); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidateMissingIdentifierFieldNameDoctrineStyle() { $this->expectException(ConstraintDefinitionException::class); @@ -1361,9 +1342,7 @@ public function testUninitializedValueThrowException() $this->validator->validate($dto, $constraint); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testUninitializedValueThrowExceptionDoctrineStyle() { $this->expectExceptionMessage('Typed property Symfony\Bridge\Doctrine\Tests\Fixtures\Dto::$foo must not be accessed before initialization'); @@ -1404,9 +1383,7 @@ public function testEntityManagerNullObjectWhenDTO() $this->validator->validate($dto, $constraint); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testEntityManagerNullObjectWhenDTODoctrineStyle() { $this->expectException(ConstraintDefinitionException::class); diff --git a/src/Symfony/Bridge/Doctrine/composer.json b/src/Symfony/Bridge/Doctrine/composer.json index 9d95a8af14ca7..3a9f602ebfdc6 100644 --- a/src/Symfony/Bridge/Doctrine/composer.json +++ b/src/Symfony/Bridge/Doctrine/composer.json @@ -30,7 +30,7 @@ "symfony/dependency-injection": "^6.4|^7.0", "symfony/doctrine-messenger": "^6.4|^7.0", "symfony/expression-language": "^6.4|^7.0", - "symfony/form": "^6.4.6|^7.0.6", + "symfony/form": "^7.2", "symfony/http-kernel": "^6.4|^7.0", "symfony/lock": "^6.4|^7.0", "symfony/messenger": "^6.4|^7.0", diff --git a/src/Symfony/Bridge/Doctrine/phpunit.xml.dist b/src/Symfony/Bridge/Doctrine/phpunit.xml.dist index 0b1a67afd1249..ea9e034bcfa90 100644 --- a/src/Symfony/Bridge/Doctrine/phpunit.xml.dist +++ b/src/Symfony/Bridge/Doctrine/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,20 +28,11 @@ ./Tests ./vendor - + - - - - - - - Symfony\Bridge\Doctrine\Middleware\Debug - Symfony\Bridge\Doctrine\Middleware\IdleConnection - - - - - - + + + + + diff --git a/src/Symfony/Bridge/Monolog/phpunit.xml.dist b/src/Symfony/Bridge/Monolog/phpunit.xml.dist index ab47262381599..dadc04efb1146 100644 --- a/src/Symfony/Bridge/Monolog/phpunit.xml.dist +++ b/src/Symfony/Bridge/Monolog/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php b/src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php index 99d4a4bcfcee8..8d992fcfd2da6 100644 --- a/src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php +++ b/src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php @@ -11,11 +11,10 @@ namespace Symfony\Bridge\PhpUnit\Tests; +use PHPUnit\Framework\Attributes\RequiresPhpunit; use PHPUnit\Framework\TestCase; -/** - * @requires PHPUnit < 10 - */ +#[RequiresPhpunit('<10')] class CoverageListenerTest extends TestCase { public function test() diff --git a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php index 7eec02954c1ca..4a37248084f5d 100644 --- a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php +++ b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php @@ -11,12 +11,14 @@ namespace Symfony\Bridge\PhpUnit\Tests\DeprecationErrorHandler; +use PHPUnit\Framework\Attributes\RequiresPhpunit; use PHPUnit\Framework\TestCase; use Symfony\Bridge\PhpUnit\DeprecationErrorHandler\Configuration; use Symfony\Bridge\PhpUnit\DeprecationErrorHandler\Deprecation; use Symfony\Bridge\PhpUnit\DeprecationErrorHandler\DeprecationGroup; use Symfony\Component\ErrorHandler\DebugClassLoader; +#[RequiresPhpunit('<10')] class ConfigurationTest extends TestCase { private $files; @@ -463,9 +465,6 @@ public function testExistingBaselineAndGeneration() $this->assertEquals(json_encode($expected, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES), file_get_contents($filename)); } - /** - * @requires PHPUnit < 10 - */ public function testBaselineGenerationWithDeprecationTriggeredByDebugClassLoader() { $filename = $this->createFile(); diff --git a/src/Symfony/Bridge/PhpUnit/Tests/ExpectDeprecationTraitTest.php b/src/Symfony/Bridge/PhpUnit/Tests/ExpectDeprecationTraitTest.php index 9adeca4962a95..142d3f854cb27 100644 --- a/src/Symfony/Bridge/PhpUnit/Tests/ExpectDeprecationTraitTest.php +++ b/src/Symfony/Bridge/PhpUnit/Tests/ExpectDeprecationTraitTest.php @@ -11,12 +11,11 @@ namespace Symfony\Bridge\PhpUnit\Tests; +use PHPUnit\Framework\Attributes\RequiresPhpunit; use PHPUnit\Framework\TestCase; use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait; -/** - * @requires PHPUnit < 10 - */ +#[RequiresPhpunit('<10')] final class ExpectDeprecationTraitTest extends TestCase { use ExpectDeprecationTrait; diff --git a/src/Symfony/Bridge/PhpUnit/Tests/ExpectedDeprecationAnnotationTest.php b/src/Symfony/Bridge/PhpUnit/Tests/ExpectedDeprecationAnnotationTest.php index 1db5448c87621..6e7ba0b5f52ab 100644 --- a/src/Symfony/Bridge/PhpUnit/Tests/ExpectedDeprecationAnnotationTest.php +++ b/src/Symfony/Bridge/PhpUnit/Tests/ExpectedDeprecationAnnotationTest.php @@ -11,11 +11,10 @@ namespace Symfony\Bridge\PhpUnit\Tests; +use PHPUnit\Framework\Attributes\RequiresPhpunit; use PHPUnit\Framework\TestCase; -/** - * @requires PHPUnit < 10 - */ +#[RequiresPhpunit('<10')] final class ExpectedDeprecationAnnotationTest extends TestCase { /** diff --git a/src/Symfony/Bridge/PhpUnit/Tests/FailTests/ExpectDeprecationTraitTestFail.php b/src/Symfony/Bridge/PhpUnit/Tests/FailTests/ExpectDeprecationTraitTestFail.php index 7bf40df6466df..a43fe307e5949 100644 --- a/src/Symfony/Bridge/PhpUnit/Tests/FailTests/ExpectDeprecationTraitTestFail.php +++ b/src/Symfony/Bridge/PhpUnit/Tests/FailTests/ExpectDeprecationTraitTestFail.php @@ -11,6 +11,7 @@ namespace Symfony\Bridge\PhpUnit\Tests\FailTests; +use PHPUnit\Framework\Attributes\RequiresPhpunit; use PHPUnit\Framework\TestCase; use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait; @@ -19,9 +20,8 @@ * * This class is deliberately suffixed with *TestFail.php so that it is ignored * by PHPUnit. This test is designed to fail. See ../expectdeprecationfail.phpt. - * - * @requires PHPUnit < 10 */ +#[RequiresPhpunit('<10')] final class ExpectDeprecationTraitTestFail extends TestCase { use ExpectDeprecationTrait; diff --git a/src/Symfony/Bridge/PhpUnit/Tests/FailTests/NoAssertionsTestNotRisky.php b/src/Symfony/Bridge/PhpUnit/Tests/FailTests/NoAssertionsTestNotRisky.php index 8008287659e98..bd259a50ef8bb 100644 --- a/src/Symfony/Bridge/PhpUnit/Tests/FailTests/NoAssertionsTestNotRisky.php +++ b/src/Symfony/Bridge/PhpUnit/Tests/FailTests/NoAssertionsTestNotRisky.php @@ -11,15 +11,15 @@ namespace Symfony\Bridge\PhpUnit\Tests\FailTests; +use PHPUnit\Framework\Attributes\RequiresPhpunit; use PHPUnit\Framework\TestCase; use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait; /** * This class is deliberately suffixed with *TestRisky.php so that it is ignored * by PHPUnit. This test is designed to fail. See ../expectnotrisky.phpt. - * - * @requires PHPUnit < 10 */ +#[RequiresPhpunit('<10')] final class NoAssertionsTestNotRisky extends TestCase { use ExpectDeprecationTrait; diff --git a/src/Symfony/Bridge/PhpUnit/Tests/FailTests/NoAssertionsTestRisky.php b/src/Symfony/Bridge/PhpUnit/Tests/FailTests/NoAssertionsTestRisky.php index 5ec13753ec4a8..601506a55fa1b 100644 --- a/src/Symfony/Bridge/PhpUnit/Tests/FailTests/NoAssertionsTestRisky.php +++ b/src/Symfony/Bridge/PhpUnit/Tests/FailTests/NoAssertionsTestRisky.php @@ -11,15 +11,15 @@ namespace Symfony\Bridge\PhpUnit\Tests\FailTests; +use PHPUnit\Framework\Attributes\RequiresPhpunit; use PHPUnit\Framework\TestCase; use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait; /** * This class is deliberately suffixed with *TestRisky.php so that it is ignored * by PHPUnit. This test is designed to fail. See ../expectrisky.phpt. - * - * @requires PHPUnit < 10 */ +#[RequiresPhpunit('<10')] final class NoAssertionsTestRisky extends TestCase { use ExpectDeprecationTrait; diff --git a/src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php b/src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php index 07fb9a2287f06..b517fe523ebf4 100644 --- a/src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php +++ b/src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bridge\PhpUnit\Tests; +use PHPUnit\Framework\Attributes\RequiresPhpunit; use PHPUnit\Framework\TestCase; /** @@ -19,9 +20,8 @@ * @group legacy * * @runTestsInSeparateProcesses - * - * @requires PHPUnit < 10 */ +#[RequiresPhpunit('<10')] class ProcessIsolationTest extends TestCase { /** diff --git a/src/Symfony/Bridge/PhpUnit/phpunit.xml.dist b/src/Symfony/Bridge/PhpUnit/phpunit.xml.dist index cde576e2c7536..7e310594fcad7 100644 --- a/src/Symfony/Bridge/PhpUnit/phpunit.xml.dist +++ b/src/Symfony/Bridge/PhpUnit/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -19,7 +20,7 @@ - + ./ @@ -27,5 +28,5 @@ ./Tests ./vendor - + diff --git a/src/Symfony/Bridge/PsrHttpMessage/composer.json b/src/Symfony/Bridge/PsrHttpMessage/composer.json index a34dfb1008e5e..3c826484f9fba 100644 --- a/src/Symfony/Bridge/PsrHttpMessage/composer.json +++ b/src/Symfony/Bridge/PsrHttpMessage/composer.json @@ -24,8 +24,9 @@ "symfony/browser-kit": "^6.4|^7.0", "symfony/config": "^6.4|^7.0", "symfony/event-dispatcher": "^6.4|^7.0", - "symfony/framework-bundle": "^6.4|^7.0", - "symfony/http-kernel": "^6.4|^7.0", + "symfony/framework-bundle": "^6.4.13|^7.1.6", + "symfony/http-kernel": "^6.4.13|^7.1.6", + "symfony/runtime": "^6.4.13|^7.1.6", "nyholm/psr7": "^1.1", "php-http/discovery": "^1.15", "psr/log": "^1.1.4|^2|^3" @@ -36,7 +37,8 @@ }, "config": { "allow-plugins": { - "php-http/discovery": false + "php-http/discovery": false, + "symfony/runtime": false } }, "autoload": { diff --git a/src/Symfony/Bridge/PsrHttpMessage/phpunit.xml.dist b/src/Symfony/Bridge/PsrHttpMessage/phpunit.xml.dist index fdfe483f56346..d3617f04980db 100644 --- a/src/Symfony/Bridge/PsrHttpMessage/phpunit.xml.dist +++ b/src/Symfony/Bridge/PsrHttpMessage/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php b/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php index 9e4e23a87e813..5b8ee671a2058 100644 --- a/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Command; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Bridge\Twig\Command\LintCommand; use Symfony\Component\Console\Application; @@ -72,9 +73,8 @@ public function testLintFileCompileTimeException() /** * When deprecations are not reported by the command, the testsuite reporter will catch them so we need to mark the test as legacy. - * - * @group legacy */ + #[IgnoreDeprecations] public function testLintFileWithNotReportedDeprecation() { $tester = $this->createCommandTester(); diff --git a/src/Symfony/Bridge/Twig/Tests/Validator/Constraints/TwigValidatorTest.php b/src/Symfony/Bridge/Twig/Tests/Validator/Constraints/TwigValidatorTest.php index da5597ad1f45f..47ab51991dfca 100644 --- a/src/Symfony/Bridge/Twig/Tests/Validator/Constraints/TwigValidatorTest.php +++ b/src/Symfony/Bridge/Twig/Tests/Validator/Constraints/TwigValidatorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bridge\Twig\Tests\Validator\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Bridge\Twig\Validator\Constraints\Twig; use Symfony\Bridge\Twig\Validator\Constraints\TwigValidator; use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; @@ -67,9 +68,8 @@ public function testInvalidValues($value, $message, $line) /** * When deprecations are skipped by the validator, the testsuite reporter will catch them so we need to mark the test as legacy. - * - * @group legacy */ + #[IgnoreDeprecations] public function testTwigWithSkipDeprecation() { $constraint = new Twig(skipDeprecations: true); diff --git a/src/Symfony/Bridge/Twig/phpunit.xml.dist b/src/Symfony/Bridge/Twig/phpunit.xml.dist index e5a59c8c5edec..033362023a05c 100644 --- a/src/Symfony/Bridge/Twig/phpunit.xml.dist +++ b/src/Symfony/Bridge/Twig/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Bundle/DebugBundle/phpunit.xml.dist b/src/Symfony/Bundle/DebugBundle/phpunit.xml.dist index a81e38228ec4c..c3e55004d8b66 100644 --- a/src/Symfony/Bundle/DebugBundle/phpunit.xml.dist +++ b/src/Symfony/Bundle/DebugBundle/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTestCase.php index eb18fbcc75b79..2a048b52fad60 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTestCase.php @@ -11,6 +11,8 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Console\Descriptor; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\FooUnitEnum; use Symfony\Component\Console\Input\ArrayInput; @@ -185,12 +187,10 @@ public static function getDescribeContainerDefinitionWhichIsAnAliasTestData(): a } /** - * The legacy group must be kept as deprecations will always be raised. - * - * @group legacy - * - * @dataProvider getDescribeContainerParameterTestData + * The #[IgnoreDeprecation] attribute must be kept as deprecations will always be raised. */ + #[IgnoreDeprecations] + #[DataProvider('getDescribeContainerParameterTestData')] public function testDescribeContainerParameter($parameter, $expectedDescription, array $options) { $this->assertDescription($expectedDescription, $parameter, $options); @@ -235,11 +235,8 @@ public static function getDescribeCallableTestData(): array return static::getDescriptionTestData(ObjectsProvider::getCallables()); } - /** - * @group legacy - * - * @dataProvider getDescribeDeprecatedCallableTestData - */ + #[IgnoreDeprecations] + #[DataProvider('getDescribeDeprecatedCallableTestData')] public function testDescribeDeprecatedCallable($callable, $expectedDescription) { $this->assertDescription($expectedDescription, $callable); diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/PropertyInfoTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/PropertyInfoTest.php index 18cd61b08519c..f627e26875d0b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/PropertyInfoTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/PropertyInfoTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\PropertyInfo\Type as LegacyType; use Symfony\Component\TypeInfo\Type; @@ -29,9 +30,7 @@ public function testPhpDocPriority() $this->assertEquals(Type::list(Type::int()), $propertyInfo->getType(Dummy::class, 'codes')); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testPhpDocPriorityLegacy() { static::bootKernel(['test_case' => 'Serializer']); diff --git a/src/Symfony/Bundle/FrameworkBundle/composer.json b/src/Symfony/Bundle/FrameworkBundle/composer.json index 316c595ffa2bb..3a2ccf48848f4 100644 --- a/src/Symfony/Bundle/FrameworkBundle/composer.json +++ b/src/Symfony/Bundle/FrameworkBundle/composer.json @@ -57,6 +57,7 @@ "symfony/object-mapper": "^v7.3.0-beta2", "symfony/process": "^6.4|^7.0", "symfony/rate-limiter": "^6.4|^7.0", + "symfony/runtime": "^6.4.13|^7.1.6", "symfony/scheduler": "^6.4.4|^7.0.4", "symfony/security-bundle": "^6.4|^7.0", "symfony/semaphore": "^6.4|^7.0", @@ -116,5 +117,10 @@ "/Tests/" ] }, - "minimum-stability": "dev" + "minimum-stability": "dev", + "config": { + "allow-plugins": { + "symfony/runtime": false + } + } } diff --git a/src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist b/src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist index d00ee0f1e214e..90e1a751eec0a 100644 --- a/src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist +++ b/src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -20,7 +21,7 @@ - + ./ @@ -29,5 +30,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php index 6479e56a668e7..224387058c684 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/MainConfigurationTest.php @@ -11,8 +11,9 @@ namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Bundle\SecurityBundle\DependencyInjection\MainConfiguration; use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\AuthenticatorFactoryInterface; use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException; @@ -21,8 +22,6 @@ class MainConfigurationTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - /** * The minimal, required config needed to not have any required validation * issues. @@ -256,11 +255,8 @@ public static function provideHideUserNotFoundData(): iterable yield [['expose_security_errors' => ExposeSecurityLevel::All], ExposeSecurityLevel::All]; } - /** - * @dataProvider provideHideUserNotFoundLegacyData - * - * @group legacy - */ + #[DataProvider('provideHideUserNotFoundLegacyData')] + #[IgnoreDeprecations] public function testExposeSecurityErrorsWithLegacyConfig(array $config, ExposeSecurityLevel $expectedExposeSecurityErrors, ?bool $expectedHideUserNotFound) { $this->expectUserDeprecationMessage('Since symfony/security-bundle 7.3: The "hide_user_not_found" option is deprecated and will be removed in 8.0. Use the "expose_security_errors" option instead.'); diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AccessTokenFactoryTest.php b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AccessTokenFactoryTest.php index 88b782363dbf9..73b593ddae6af 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AccessTokenFactoryTest.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Security/Factory/AccessTokenFactoryTest.php @@ -11,6 +11,7 @@ namespace Symfony\Bundle\SecurityBundle\Tests\DependencyInjection\Security\Factory; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\AccessToken\CasTokenHandlerFactory; use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\AccessToken\OAuth2TokenHandlerFactory; @@ -183,13 +184,11 @@ public function testInvalidOidcTokenHandlerConfigurationMissingAlgorithmParamete $this->processConfig($config, $factory); } - /** - * @group legacy - * - * @expectedDeprecation Since symfony/security-bundle 7.1: The "key" option is deprecated and will be removed in 8.0. Use the "keyset" option instead. - */ + #[IgnoreDeprecations] public function testOidcTokenHandlerConfigurationWithSingleAlgorithm() { + $this->expectUserDeprecationMessage('Since symfony/security-bundle 7.1: The "key" option is deprecated and will be removed in 8.0. Use the "keyset" option instead.'); + $container = new ContainerBuilder(); $jwk = '{"kty":"EC","crv":"P-256","x":"0QEAsI1wGI-dmYatdUZoWSRWggLEpyzopuhwk-YUnA4","y":"KYl-qyZ26HobuYwlQh-r0iHX61thfP82qqEku7i0woo","d":"iA_TV2zvftni_9aFAQwFO_9aypfJFCSpcCyevDvz220"}'; $config = [ diff --git a/src/Symfony/Bundle/SecurityBundle/composer.json b/src/Symfony/Bundle/SecurityBundle/composer.json index 7459b0175b95f..d355f9df74f1c 100644 --- a/src/Symfony/Bundle/SecurityBundle/composer.json +++ b/src/Symfony/Bundle/SecurityBundle/composer.json @@ -23,7 +23,7 @@ "symfony/config": "^7.3", "symfony/dependency-injection": "^6.4.11|^7.1.4", "symfony/event-dispatcher": "^6.4|^7.0", - "symfony/http-kernel": "^6.4|^7.0", + "symfony/http-kernel": "^6.4.13|^7.1.6", "symfony/http-foundation": "^6.4|^7.0", "symfony/password-hasher": "^6.4|^7.0", "symfony/security-core": "^7.3", @@ -39,11 +39,12 @@ "symfony/dom-crawler": "^6.4|^7.0", "symfony/expression-language": "^6.4|^7.0", "symfony/form": "^6.4|^7.0", - "symfony/framework-bundle": "^6.4|^7.0", + "symfony/framework-bundle": "^6.4.13|^7.1.6", "symfony/http-client": "^6.4|^7.0", "symfony/ldap": "^6.4|^7.0", "symfony/process": "^6.4|^7.0", "symfony/rate-limiter": "^6.4|^7.0", + "symfony/runtime": "^6.4.13|^7.1.6", "symfony/serializer": "^6.4|^7.0", "symfony/translation": "^6.4|^7.0", "symfony/twig-bundle": "^6.4|^7.0", @@ -69,5 +70,10 @@ "/Tests/" ] }, - "minimum-stability": "dev" + "minimum-stability": "dev", + "config": { + "allow-plugins": { + "symfony/runtime": false + } + } } diff --git a/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist b/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist index b8b8a9adbedc1..98a9bc3e8f1a4 100644 --- a/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist +++ b/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/TwigExtensionTest.php b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/TwigExtensionTest.php index 086a4cdd6e1e8..4fe562d3d3665 100644 --- a/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/TwigExtensionTest.php +++ b/src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/TwigExtensionTest.php @@ -11,7 +11,8 @@ namespace Symfony\Bundle\TwigBundle\Tests\DependencyInjection; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\RuntimeLoaderPass; use Symfony\Bundle\TwigBundle\DependencyInjection\TwigExtension; use Symfony\Bundle\TwigBundle\Tests\DependencyInjection\AcmeBundle\AcmeBundle; @@ -33,8 +34,6 @@ class TwigExtensionTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testLoadEmptyConfiguration() { $container = $this->createContainer(); @@ -159,11 +158,8 @@ public function testLoadProdCacheConfiguration(string $format, ?string $buildDir $this->assertEquals($buildDir !== null ? new Reference('twig.template_cache.chain') : '%kernel.cache_dir%/twig', $options['cache'], '->load() sets cache option to CacheChain reference'); } - /** - * @group legacy - * - * @dataProvider getFormats - */ + #[IgnoreDeprecations] + #[DataProvider('getFormats')] public function testLoadCustomBaseTemplateClassConfiguration(string $format) { $container = $this->createContainer(); diff --git a/src/Symfony/Bundle/TwigBundle/composer.json b/src/Symfony/Bundle/TwigBundle/composer.json index 221a7f471290e..a634fa586fcc5 100644 --- a/src/Symfony/Bundle/TwigBundle/composer.json +++ b/src/Symfony/Bundle/TwigBundle/composer.json @@ -22,7 +22,7 @@ "symfony/dependency-injection": "^6.4|^7.0", "symfony/twig-bridge": "^7.3", "symfony/http-foundation": "^6.4|^7.0", - "symfony/http-kernel": "^6.4|^7.0", + "symfony/http-kernel": "^6.4.13|^7.1.6", "twig/twig": "^3.12" }, "require-dev": { @@ -32,9 +32,10 @@ "symfony/finder": "^6.4|^7.0", "symfony/form": "^6.4|^7.0", "symfony/routing": "^6.4|^7.0", + "symfony/runtime": "^6.4.13|^7.1.6", "symfony/translation": "^6.4|^7.0", "symfony/yaml": "^6.4|^7.0", - "symfony/framework-bundle": "^6.4|^7.0", + "symfony/framework-bundle": "^6.4.13|^7.1.6", "symfony/web-link": "^6.4|^7.0" }, "conflict": { @@ -47,5 +48,10 @@ "/Tests/" ] }, - "minimum-stability": "dev" + "minimum-stability": "dev", + "config": { + "allow-plugins": { + "symfony/runtime": false + } + } } diff --git a/src/Symfony/Bundle/TwigBundle/phpunit.xml.dist b/src/Symfony/Bundle/TwigBundle/phpunit.xml.dist index 5b35c7666f2e5..61155994f5452 100644 --- a/src/Symfony/Bundle/TwigBundle/phpunit.xml.dist +++ b/src/Symfony/Bundle/TwigBundle/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Bundle/WebProfilerBundle/composer.json b/src/Symfony/Bundle/WebProfilerBundle/composer.json index 00269dd279d45..1261fac9c343a 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/composer.json +++ b/src/Symfony/Bundle/WebProfilerBundle/composer.json @@ -20,8 +20,8 @@ "composer-runtime-api": ">=2.1", "symfony/config": "^7.3", "symfony/deprecation-contracts": "^2.5|^3", - "symfony/framework-bundle": "^6.4|^7.0", - "symfony/http-kernel": "^6.4|^7.0", + "symfony/framework-bundle": "^6.4.13|^7.1.6", + "symfony/http-kernel": "^6.4.13|^7.1.6", "symfony/routing": "^6.4|^7.0", "symfony/twig-bundle": "^6.4|^7.0", "twig/twig": "^3.12" @@ -30,6 +30,7 @@ "symfony/browser-kit": "^6.4|^7.0", "symfony/console": "^6.4|^7.0", "symfony/css-selector": "^6.4|^7.0", + "symfony/runtime": "^6.4.13|^7.1.6", "symfony/stopwatch": "^6.4|^7.0" }, "conflict": { @@ -45,5 +46,10 @@ "/Tests/" ] }, - "minimum-stability": "dev" + "minimum-stability": "dev", + "config": { + "allow-plugins": { + "symfony/runtime": false + } + } } diff --git a/src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist b/src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist index 598b247ec4fbc..98ea54f6a220c 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist +++ b/src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Asset/phpunit.xml.dist b/src/Symfony/Component/Asset/phpunit.xml.dist index 116798bdd3f3f..8fc293603d88d 100644 --- a/src/Symfony/Component/Asset/phpunit.xml.dist +++ b/src/Symfony/Component/Asset/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapConfigReaderTest.php b/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapConfigReaderTest.php index a83b327f9e503..4f65c77c9be54 100644 --- a/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapConfigReaderTest.php +++ b/src/Symfony/Component/AssetMapper/Tests/ImportMap/ImportMapConfigReaderTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\AssetMapper\Tests\ImportMap; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\AssetMapper\ImportMap\ImportMapConfigReader; use Symfony\Component\AssetMapper\ImportMap\ImportMapEntries; use Symfony\Component\AssetMapper\ImportMap\ImportMapEntry; @@ -22,8 +22,6 @@ class ImportMapConfigReaderTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private Filesystem $filesystem; protected function setUp(): void @@ -163,9 +161,7 @@ public function testFindRootImportMapEntry() $this->assertSame('file2.js', $entry->path); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testDeprecatedMethodTriggerDeprecation() { $this->expectUserDeprecationMessage('Since symfony/asset-mapper 7.1: The method "Symfony\Component\AssetMapper\ImportMap\ImportMapConfigReader::splitPackageNameAndFilePath()" is deprecated and will be removed in 8.0. Use ImportMapEntry::splitPackageNameAndFilePath() instead.'); diff --git a/src/Symfony/Component/AssetMapper/composer.json b/src/Symfony/Component/AssetMapper/composer.json index 1286eefc09081..730d613129cdf 100644 --- a/src/Symfony/Component/AssetMapper/composer.json +++ b/src/Symfony/Component/AssetMapper/composer.json @@ -25,13 +25,14 @@ "require-dev": { "symfony/asset": "^6.4|^7.0", "symfony/browser-kit": "^6.4|^7.0", - "symfony/console": "^6.4|^7.0", + "symfony/console": "^6.4.13|^7.1.6", "symfony/event-dispatcher-contracts": "^3.0", "symfony/finder": "^6.4|^7.0", - "symfony/framework-bundle": "^6.4|^7.0", + "symfony/framework-bundle": "^6.4.13|^7.1.6", "symfony/http-foundation": "^6.4|^7.0", - "symfony/http-kernel": "^6.4|^7.0", + "symfony/http-kernel": "^6.4.13|^7.1.6", "symfony/process": "^6.4|^7.0", + "symfony/runtime": "^6.4.13|^7.1.6", "symfony/web-link": "^6.4|^7.0" }, "conflict": { @@ -43,5 +44,10 @@ "/Tests/" ] }, - "minimum-stability": "dev" + "minimum-stability": "dev", + "config": { + "allow-plugins": { + "symfony/runtime": false + } + } } diff --git a/src/Symfony/Component/AssetMapper/phpunit.xml.dist b/src/Symfony/Component/AssetMapper/phpunit.xml.dist index 21a1e9bf9ede4..c4a26b2f96840 100644 --- a/src/Symfony/Component/AssetMapper/phpunit.xml.dist +++ b/src/Symfony/Component/AssetMapper/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/BrowserKit/phpunit.xml.dist b/src/Symfony/Component/BrowserKit/phpunit.xml.dist index 747ed25cfd7e5..2272dfedbb385 100644 --- a/src/Symfony/Component/BrowserKit/phpunit.xml.dist +++ b/src/Symfony/Component/BrowserKit/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Cache/Tests/Adapter/CouchbaseBucketAdapterTest.php b/src/Symfony/Component/Cache/Tests/Adapter/CouchbaseBucketAdapterTest.php index 35c1591c07a69..05fa50a9d2472 100644 --- a/src/Symfony/Component/Cache/Tests/Adapter/CouchbaseBucketAdapterTest.php +++ b/src/Symfony/Component/Cache/Tests/Adapter/CouchbaseBucketAdapterTest.php @@ -11,23 +11,22 @@ namespace Symfony\Component\Cache\Tests\Adapter; +use PHPUnit\Framework\Attributes\Group; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; +use PHPUnit\Framework\Attributes\RequiresPhpExtension; use Psr\Cache\CacheItemPoolInterface; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Cache\Adapter\AbstractAdapter; use Symfony\Component\Cache\Adapter\CouchbaseBucketAdapter; /** - * @requires extension couchbase <3.0.0 - * @requires extension couchbase >=2.6.0 - * - * @group legacy integration - * * @author Antonio Jose Cerezo Aranda */ +#[Group('integration')] +#[IgnoreDeprecations] +#[RequiresPhpExtension('couchbase', '<3.0.0')] +#[RequiresPhpExtension('couchbase', '>=2.6.0')] class CouchbaseBucketAdapterTest extends AdapterTestCase { - use ExpectUserDeprecationMessageTrait; - protected $skippedTests = [ 'testClearPrefix' => 'Couchbase cannot clear by prefix', ]; diff --git a/src/Symfony/Component/Cache/phpunit.xml.dist b/src/Symfony/Component/Cache/phpunit.xml.dist index fb7c080562c45..b3d6d8189974e 100644 --- a/src/Symfony/Component/Cache/phpunit.xml.dist +++ b/src/Symfony/Component/Cache/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -24,7 +25,7 @@ - + ./ @@ -32,23 +33,11 @@ ./Tests ./vendor - + - - - - - - - Cache\IntegrationTests - Symfony\Component\Cache - Symfony\Component\Cache\Tests\Fixtures - Symfony\Component\Cache\Tests\Traits - Symfony\Component\Cache\Traits - - - - - - + + + + + diff --git a/src/Symfony/Component/Clock/phpunit.xml.dist b/src/Symfony/Component/Clock/phpunit.xml.dist index 06071b21d2f63..48d6f1c941d86 100644 --- a/src/Symfony/Component/Clock/phpunit.xml.dist +++ b/src/Symfony/Component/Clock/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Config/phpunit.xml.dist b/src/Symfony/Component/Config/phpunit.xml.dist index 7ff2f3fb49d01..1fc0b6db2b3aa 100644 --- a/src/Symfony/Component/Config/phpunit.xml.dist +++ b/src/Symfony/Component/Config/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Console/Tests/Command/CommandTest.php b/src/Symfony/Component/Console/Tests/Command/CommandTest.php index 0db3572fc3476..e403714300f52 100644 --- a/src/Symfony/Component/Console/Tests/Command/CommandTest.php +++ b/src/Symfony/Component/Console/Tests/Command/CommandTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\Console\Tests\Command; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Console\Application; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; @@ -30,8 +30,6 @@ class CommandTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - protected static string $fixturesPath; public static function setUpBeforeClass(): void @@ -448,9 +446,7 @@ public function testCommandAttribute() $this->assertSame(['f'], $command->getAliases()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testCommandAttributeWithDeprecatedMethods() { $this->expectUserDeprecationMessage('Since symfony/console 7.3: Method "Symfony\Component\Console\Command\Command::getDefaultName()" is deprecated and will be removed in Symfony 8.0, use the #[AsCommand] attribute instead.'); @@ -468,9 +464,7 @@ public function testAttributeOverridesProperty() $this->assertSame('This is a command I wrote all by myself', $command->getDescription()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testAttributeOverridesPropertyWithDeprecatedMethods() { $this->expectUserDeprecationMessage('Since symfony/console 7.3: Method "Symfony\Component\Console\Command\Command::getDefaultName()" is deprecated and will be removed in Symfony 8.0, use the #[AsCommand] attribute instead.'); @@ -494,9 +488,7 @@ public function testDefaultCommand() $this->assertEquals('foo2', $property->getValue($apl)); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testDeprecatedMethods() { $this->expectUserDeprecationMessage('Since symfony/console 7.3: Overriding "Command::getDefaultName()" in "Symfony\Component\Console\Tests\Command\FooCommand" is deprecated and will be removed in Symfony 8.0, use the #[AsCommand] attribute instead.'); @@ -505,9 +497,7 @@ public function testDeprecatedMethods() new FooCommand(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testDeprecatedNonIntegerReturnTypeFromClosureCode() { $this->expectUserDeprecationMessage('Since symfony/console 7.3: Returning a non-integer value from the command "foo" is deprecated and will throw an exception in Symfony 8.0.'); diff --git a/src/Symfony/Component/Console/phpunit.xml.dist b/src/Symfony/Component/Console/phpunit.xml.dist index 0e96921be86fe..950f1c096e703 100644 --- a/src/Symfony/Component/Console/phpunit.xml.dist +++ b/src/Symfony/Component/Console/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,15 +28,11 @@ ./Tests ./vendor - + - - - - - Symfony\Component\Console - - - - + + + + + diff --git a/src/Symfony/Component/CssSelector/phpunit.xml.dist b/src/Symfony/Component/CssSelector/phpunit.xml.dist index 7d8f8391da6ac..75680db2171ad 100644 --- a/src/Symfony/Component/CssSelector/phpunit.xml.dist +++ b/src/Symfony/Component/CssSelector/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php index 114d514adddec..d6ccfe7ad0f71 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; @@ -400,9 +401,7 @@ public function testResolveParameter() $this->assertEquals(Foo::class, $container->getDefinition('bar')->getArgument(0)); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testOptionalParameter() { $container = new ContainerBuilder(); diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php index e7b36d3ce496a..4661d867263e9 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Psr\Container\ContainerInterface as PsrContainerInterface; use Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument; @@ -458,9 +459,7 @@ public static function getSubscribedServices(): array $this->assertEquals($expected, $container->getDefinition((string) $locator->getFactory()[0])->getArgument(0)); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testSubscribedServiceWithLegacyAttributes() { $container = new ContainerBuilder(); diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveReferencesToAliasesPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveReferencesToAliasesPassTest.php index aedf7fa5420f2..71ca9a16d2d3e 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveReferencesToAliasesPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveReferencesToAliasesPassTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\DependencyInjection\Alias; use Symfony\Component\DependencyInjection\Compiler\ResolveReferencesToAliasesPass; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -22,8 +22,6 @@ class ResolveReferencesToAliasesPassTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testProcess() { $container = new ContainerBuilder(); @@ -87,9 +85,8 @@ public function testResolveFactory() /** * The test should be kept in the group as it always expects a deprecation. - * - * @group legacy */ + #[IgnoreDeprecations] public function testDeprecationNoticeWhenReferencedByAlias() { $this->expectUserDeprecationMessage('Since foobar 1.2.3.4: The "deprecated_foo_alias" service alias is deprecated. You should stop using it, as it will be removed in the future. It is being referenced by the "alias" alias.'); @@ -109,9 +106,8 @@ public function testDeprecationNoticeWhenReferencedByAlias() /** * The test should be kept in the group as it always expects a deprecation. - * - * @group legacy */ + #[IgnoreDeprecations] public function testDeprecationNoticeWhenReferencedByDefinition() { $this->expectUserDeprecationMessage('Since foobar 1.2.3.4: The "foo_aliased" service alias is deprecated. You should stop using it, as it will be removed in the future. It is being referenced by the "definition" service.'); diff --git a/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php b/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php index 774b1f88b66e7..02d6ea49c4b8f 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php @@ -15,8 +15,8 @@ require_once __DIR__.'/Fixtures/includes/classes.php'; require_once __DIR__.'/Fixtures/includes/ProjectExtension.php'; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Config\Resource\DirectoryResource; use Symfony\Component\Config\Resource\FileResource; use Symfony\Component\Config\Resource\ResourceInterface; @@ -64,8 +64,6 @@ class ContainerBuilderTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testDefaultRegisteredDefinitions() { $builder = new ContainerBuilder(); @@ -108,9 +106,8 @@ public function testDefinitions() /** * The test should be kept in the group as it always expects a deprecation. - * - * @group legacy */ + #[IgnoreDeprecations] public function testDeprecateParameter() { $builder = new ContainerBuilder(); @@ -125,9 +122,8 @@ public function testDeprecateParameter() /** * The test should be kept in the group as it always expects a deprecation. - * - * @group legacy */ + #[IgnoreDeprecations] public function testParameterDeprecationIsTrgiggeredWhenCompiled() { $builder = new ContainerBuilder(); @@ -842,9 +838,7 @@ public function testMergeAttributeAutoconfiguration() $this->assertSame([AsTaggedItem::class => [$c1, $c2]], $container->getAttributeAutoconfigurators()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testGetAutoconfiguredAttributes() { $container = new ContainerBuilder(); @@ -1996,9 +1990,8 @@ public function testAutoAliasing() /** * The test should be kept in the group as it always expects a deprecation. - * - * @group legacy */ + #[IgnoreDeprecations] public function testDirectlyAccessingDeprecatedPublicService() { $this->expectUserDeprecationMessage('Since foo/bar 3.8: Accessing the "Symfony\Component\DependencyInjection\Tests\A" service directly from the container is deprecated, use dependency injection instead.'); diff --git a/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php b/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php index a117a69a02cf8..63582d087c312 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php @@ -11,9 +11,9 @@ namespace Symfony\Component\DependencyInjection\Tests\Dumper; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Psr\Container\ContainerInterface; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\Argument\AbstractArgument; use Symfony\Component\DependencyInjection\Argument\IteratorArgument; @@ -78,8 +78,6 @@ class PhpDumperTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - protected static string $fixturesPath; public static function setUpBeforeClass(): void @@ -480,9 +478,8 @@ public function testDumpAutowireData() /** * The test should be kept in the group as it always expects a deprecation. - * - * @group legacy */ + #[IgnoreDeprecations] public function testDeprecatedParameters() { $container = include self::$fixturesPath.'/containers/container_deprecated_parameters.php'; @@ -497,9 +494,8 @@ public function testDeprecatedParameters() /** * The test should be kept in the group as it always expects a deprecation. - * - * @group legacy */ + #[IgnoreDeprecations] public function testDeprecatedParametersAsFiles() { $container = include self::$fixturesPath.'/containers/container_deprecated_parameters.php'; @@ -1801,9 +1797,8 @@ public function testDumpServiceWithAbstractArgument() /** * The test should be kept in the group as it always expects a deprecation. - * - * @group legacy */ + #[IgnoreDeprecations] public function testDirectlyAccessingDeprecatedPublicService() { $this->expectUserDeprecationMessage('Since foo/bar 3.8: Accessing the "bar" service directly from the container is deprecated, use dependency injection instead.'); diff --git a/src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php b/src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php index f962fa1062bb5..06f1739aa0e1f 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\DependencyInjection\Tests\Loader; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Config\Exception\FileLocatorFileNotFoundException; use Symfony\Component\Config\Exception\LoaderLoadException; use Symfony\Component\Config\FileLocator; @@ -52,8 +52,6 @@ class XmlFileLoaderTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - protected static string $fixturesPath; public static function setUpBeforeClass(): void @@ -1335,9 +1333,7 @@ public function testUnknownConstantAsKey() $loader->load('key_type_wrong_constant.xml'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testDeprecatedTagged() { $container = new ContainerBuilder(); diff --git a/src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php b/src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php index 54900e4c3e146..368cca9e44fb9 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\DependencyInjection\Tests\Loader; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Config\Exception\FileLocatorFileNotFoundException; use Symfony\Component\Config\Exception\LoaderLoadException; use Symfony\Component\Config\FileLocator; @@ -48,8 +48,6 @@ class YamlFileLoaderTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - protected static string $fixturesPath; public static function setUpBeforeClass(): void @@ -1212,9 +1210,7 @@ public function testStaticConstructor() $this->assertEquals((new Definition('stdClass'))->setFactory([null, 'create']), $definition); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testDeprecatedTagged() { $container = new ContainerBuilder(); diff --git a/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/FrozenParameterBagTest.php b/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/FrozenParameterBagTest.php index 2a40401826bbf..4f10eaeca40da 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/FrozenParameterBagTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/FrozenParameterBagTest.php @@ -11,14 +11,12 @@ namespace Symfony\Component\DependencyInjection\Tests\ParameterBag; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag; class FrozenParameterBagTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testConstructor() { $parameters = [ @@ -66,9 +64,8 @@ public function testDeprecate() /** * The test should be kept in the group as it always expects a deprecation. - * - * @group legacy */ + #[IgnoreDeprecations] public function testGetDeprecated() { $bag = new FrozenParameterBag( diff --git a/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php b/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php index db5c58a063bc3..4fdba2d704e41 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/ParameterBag/ParameterBagTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\DependencyInjection\Tests\ParameterBag; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\DependencyInjection\Exception\EmptyParameterValueException; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; use Symfony\Component\DependencyInjection\Exception\ParameterCircularReferenceException; @@ -22,8 +22,6 @@ class ParameterBagTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testConstructor() { $bag = new ParameterBag($parameters = [ @@ -141,9 +139,8 @@ public static function provideGetThrowParameterNotFoundExceptionData() /** * The test should be kept in the group as it always expects a deprecation. - * - * @group legacy */ + #[IgnoreDeprecations] public function testDeprecate() { $bag = new ParameterBag(['foo' => 'bar']); @@ -157,9 +154,8 @@ public function testDeprecate() /** * The test should be kept in the group as it always expects a deprecation. - * - * @group legacy */ + #[IgnoreDeprecations] public function testDeprecateWithMessage() { $bag = new ParameterBag(['foo' => 'bar']); @@ -173,9 +169,8 @@ public function testDeprecateWithMessage() /** * The test should be kept in the group as it always expects a deprecation. - * - * @group legacy */ + #[IgnoreDeprecations] public function testDeprecationIsTriggeredWhenResolved() { $bag = new ParameterBag(['foo' => '%bar%', 'bar' => 'baz']); diff --git a/src/Symfony/Component/DependencyInjection/composer.json b/src/Symfony/Component/DependencyInjection/composer.json index 460751088f451..1b74dd27dc117 100644 --- a/src/Symfony/Component/DependencyInjection/composer.json +++ b/src/Symfony/Component/DependencyInjection/composer.json @@ -19,7 +19,7 @@ "php": ">=8.2", "psr/container": "^1.1|^2.0", "symfony/deprecation-contracts": "^2.5|^3", - "symfony/service-contracts": "^3.5", + "symfony/service-contracts": "^3.6", "symfony/var-exporter": "^6.4.20|^7.2.5" }, "require-dev": { diff --git a/src/Symfony/Component/DependencyInjection/phpunit.xml.dist b/src/Symfony/Component/DependencyInjection/phpunit.xml.dist index da20ea70a65b2..9bd36f7def281 100644 --- a/src/Symfony/Component/DependencyInjection/phpunit.xml.dist +++ b/src/Symfony/Component/DependencyInjection/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/DomCrawler/phpunit.xml.dist b/src/Symfony/Component/DomCrawler/phpunit.xml.dist index 473de6089dfb2..12c3592741f35 100644 --- a/src/Symfony/Component/DomCrawler/phpunit.xml.dist +++ b/src/Symfony/Component/DomCrawler/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Dotenv/phpunit.xml.dist b/src/Symfony/Component/Dotenv/phpunit.xml.dist index 461dc69433f73..0cbf61812c750 100644 --- a/src/Symfony/Component/Dotenv/phpunit.xml.dist +++ b/src/Symfony/Component/Dotenv/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Emoji/phpunit.xml.dist b/src/Symfony/Component/Emoji/phpunit.xml.dist index 5c74dab50b3ca..ae3217c70388d 100644 --- a/src/Symfony/Component/Emoji/phpunit.xml.dist +++ b/src/Symfony/Component/Emoji/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php b/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php index 5f55cfb2c969d..12e79e3e1111a 100644 --- a/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php +++ b/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php @@ -11,6 +11,8 @@ namespace Symfony\Component\ErrorHandler\Tests; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\WithoutErrorHandler; use PHPUnit\Framework\TestCase; use Psr\Log\LoggerInterface; use Psr\Log\LogLevel; @@ -37,6 +39,7 @@ protected function tearDown(): void $r->setValue(null, 0); } + #[WithoutErrorHandler] public function testRegister() { $handler = ErrorHandler::register(); @@ -67,6 +70,7 @@ public function testRegister() } } + #[WithoutErrorHandler] public function testErrorGetLast() { $logger = $this->createMock(LoggerInterface::class); @@ -89,6 +93,7 @@ public function testErrorGetLast() } } + #[WithoutErrorHandler] public function testNotice() { ErrorHandler::register(); @@ -125,6 +130,7 @@ public static function triggerNotice($that) $that->assertSame('', $foo.$foo.$bar); } + #[WithoutErrorHandler] public function testFailureCall() { $this->expectException(\ErrorException::class); @@ -133,6 +139,7 @@ public function testFailureCall() ErrorHandler::call('fopen', 'unknown.txt', 'r'); } + #[WithoutErrorHandler] public function testCallRestoreErrorHandler() { $prev = set_error_handler('var_dump'); @@ -149,6 +156,7 @@ public function testCallRestoreErrorHandler() $this->assertSame('var_dump', $prev); } + #[WithoutErrorHandler] public function testCallErrorExceptionInfo() { try { @@ -167,6 +175,7 @@ public function testCallErrorExceptionInfo() } } + #[WithoutErrorHandler] public function testSuccessCall() { touch($filename = tempnam(sys_get_temp_dir(), 'sf_error_handler_')); @@ -176,6 +185,7 @@ public function testSuccessCall() unlink($filename); } + #[WithoutErrorHandler] public function testConstruct() { try { @@ -188,6 +198,7 @@ public function testConstruct() } } + #[WithoutErrorHandler] public function testDefaultLogger() { try { @@ -225,6 +236,7 @@ public function testDefaultLogger() } } + #[WithoutErrorHandler] public function testHandleError() { try { @@ -330,6 +342,7 @@ public function testHandleError() } } + #[WithoutErrorHandler] public function testHandleErrorWithAnonymousClass() { $anonymousObject = new class extends \stdClass { @@ -348,6 +361,7 @@ public function testHandleErrorWithAnonymousClass() $this->assertSame('User Warning: foo stdClass@anonymous bar', $e->getMessage()); } + #[WithoutErrorHandler] public function testHandleDeprecation() { $logArgCheck = function ($level, $message, $context) { @@ -370,9 +384,8 @@ public function testHandleDeprecation() @$handler->handleError(\E_USER_DEPRECATED, 'Foo deprecation', __FILE__, __LINE__, []); } - /** - * @dataProvider handleExceptionProvider - */ + #[DataProvider('handleExceptionProvider')] + #[WithoutErrorHandler] public function testHandleException(string $expectedMessage, \Throwable $exception, ?string $enhancedMessage = null) { try { @@ -433,6 +446,7 @@ public static function handleExceptionProvider(): array ]; } + #[WithoutErrorHandler] public function testBootstrappingLogger() { $bootLogger = new BufferingLogger(); @@ -487,6 +501,7 @@ public function testBootstrappingLogger() $handler->setLoggers([\E_DEPRECATED => [$mockLogger, LogLevel::WARNING]]); } + #[WithoutErrorHandler] public function testSettingLoggerWhenExceptionIsBuffered() { $bootLogger = new BufferingLogger(); @@ -506,6 +521,7 @@ public function testSettingLoggerWhenExceptionIsBuffered() $handler->handleException($exception); } + #[WithoutErrorHandler] public function testHandleFatalError() { try { @@ -541,6 +557,7 @@ public function testHandleFatalError() } } + #[WithoutErrorHandler] public function testHandleErrorException() { $exception = new \Error("Class 'IReallyReallyDoNotExistAnywhereInTheRepositoryISwear' not found"); @@ -556,6 +573,7 @@ public function testHandleErrorException() $this->assertStringStartsWith("Attempted to load class \"IReallyReallyDoNotExistAnywhereInTheRepositoryISwear\" from the global namespace.\nDid you forget a \"use\" statement", $args[0]->getMessage()); } + #[WithoutErrorHandler] public function testCustomExceptionHandler() { $this->expectException(\Exception::class); @@ -568,6 +586,7 @@ public function testCustomExceptionHandler() $handler->handleException(new \Exception()); } + #[WithoutErrorHandler] public function testRenderException() { $handler = new ErrorHandler(); @@ -580,9 +599,8 @@ public function testRenderException() self::assertStringContainsString('Class Foo not found', $response); } - /** - * @dataProvider errorHandlerWhenLoggingProvider - */ + #[DataProvider('errorHandlerWhenLoggingProvider')] + #[WithoutErrorHandler] public function testErrorHandlerWhenLogging(bool $previousHandlerWasDefined, bool $loggerSetsAnotherHandler, bool $nextHandlerIsDefined) { try { @@ -634,6 +652,7 @@ public static function errorHandlerWhenLoggingProvider(): iterable } } + #[WithoutErrorHandler] public function testAssertQuietEval() { if ('-1' === \ini_get('zend.assertions')) { @@ -675,6 +694,7 @@ public function testAssertQuietEval() $this->assertSame('Warning: assert(): assert(false) failed', $logs[0][1]); } + #[WithoutErrorHandler] public function testHandleTriggerDeprecation() { try { diff --git a/src/Symfony/Component/ErrorHandler/phpunit.xml.dist b/src/Symfony/Component/ErrorHandler/phpunit.xml.dist index b23ccab51b8a7..a49ef4008b82f 100644 --- a/src/Symfony/Component/ErrorHandler/phpunit.xml.dist +++ b/src/Symfony/Component/ErrorHandler/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/EventDispatcher/phpunit.xml.dist b/src/Symfony/Component/EventDispatcher/phpunit.xml.dist index 4d473936c6932..79bed7ea4ccb2 100644 --- a/src/Symfony/Component/EventDispatcher/phpunit.xml.dist +++ b/src/Symfony/Component/EventDispatcher/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist b/src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist index 8e60a89da1f7c..bf5d7ef250941 100644 --- a/src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist +++ b/src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Filesystem/phpunit.xml.dist b/src/Symfony/Component/Filesystem/phpunit.xml.dist index e7418f42cd280..de9ee58664338 100644 --- a/src/Symfony/Component/Filesystem/phpunit.xml.dist +++ b/src/Symfony/Component/Filesystem/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Finder/phpunit.xml.dist b/src/Symfony/Component/Finder/phpunit.xml.dist index a68bde58b834f..6ad494546aefe 100644 --- a/src/Symfony/Component/Finder/phpunit.xml.dist +++ b/src/Symfony/Component/Finder/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php index 934460c8f98a4..eb921a64215f0 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/EventListener/ResizeFormListenerTest.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Form\Tests\Extension\Core\EventListener; use Doctrine\Common\Collections\ArrayCollection; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\Form\AbstractType; @@ -43,9 +44,7 @@ protected function getBuilder($name = 'name') return new FormBuilder($name, null, new EventDispatcher(), $this->factory); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testPreSetDataResizesForm() { $this->builder->add($this->getBuilder('0')); @@ -93,9 +92,7 @@ public function testPostSetDataResizesForm() $this->assertSame('string', $form->get('2')->getData()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testPreSetDataRequiresArrayOrTraversable() { $this->expectException(UnexpectedTypeException::class); @@ -119,9 +116,7 @@ public function testPostSetDataRequiresArrayOrTraversable() $listener->postSetData($event); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testPreSetDataDealsWithNullData() { $data = null; diff --git a/src/Symfony/Component/Form/Tests/Extension/Core/Type/UrlTypeTest.php b/src/Symfony/Component/Form/Tests/Extension/Core/Type/UrlTypeTest.php index a0d335647dd34..8aeb431acfb7a 100644 --- a/src/Symfony/Component/Form/Tests/Extension/Core/Type/UrlTypeTest.php +++ b/src/Symfony/Component/Form/Tests/Extension/Core/Type/UrlTypeTest.php @@ -11,19 +11,15 @@ namespace Symfony\Component\Form\Tests\Extension\Core\Type; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Form\Extension\Core\Type\UrlType; use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException; class UrlTypeTest extends TextTypeTest { - use ExpectUserDeprecationMessageTrait; - public const TESTED_TYPE = UrlType::class; - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testSubmitAddsDefaultProtocolIfNoneIsIncluded() { $this->expectUserDeprecationMessage('Since symfony/form 7.1: Not configuring the "default_protocol" option when using the UrlType is deprecated. It will default to "null" in 8.0.'); diff --git a/src/Symfony/Component/Form/composer.json b/src/Symfony/Component/Form/composer.json index f4403ba74d878..0782692dc0944 100644 --- a/src/Symfony/Component/Form/composer.json +++ b/src/Symfony/Component/Form/composer.json @@ -28,7 +28,7 @@ }, "require-dev": { "doctrine/collections": "^1.0|^2.0", - "symfony/validator": "^6.4|^7.0", + "symfony/validator": "^6.4.12|^7.1.5", "symfony/dependency-injection": "^6.4|^7.0", "symfony/expression-language": "^6.4|^7.0", "symfony/config": "^6.4|^7.0", diff --git a/src/Symfony/Component/Form/phpunit.xml.dist b/src/Symfony/Component/Form/phpunit.xml.dist index 148f8f58dd260..b4d5784151b06 100644 --- a/src/Symfony/Component/Form/phpunit.xml.dist +++ b/src/Symfony/Component/Form/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/HtmlSanitizer/phpunit.xml.dist b/src/Symfony/Component/HtmlSanitizer/phpunit.xml.dist index bb03155b35ae2..f75585fb2bab7 100644 --- a/src/Symfony/Component/HtmlSanitizer/phpunit.xml.dist +++ b/src/Symfony/Component/HtmlSanitizer/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/HttpClient/phpunit.xml.dist b/src/Symfony/Component/HttpClient/phpunit.xml.dist index afb49661d7976..3bb41d367d9e3 100644 --- a/src/Symfony/Component/HttpClient/phpunit.xml.dist +++ b/src/Symfony/Component/HttpClient/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/HttpFoundation/Tests/Fixtures/response-functional/cookie_urlencode.expected b/src/Symfony/Component/HttpFoundation/Tests/Fixtures/response-functional/cookie_urlencode.expected index 17a9efc669043..1fbc95eef1ceb 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Fixtures/response-functional/cookie_urlencode.expected +++ b/src/Symfony/Component/HttpFoundation/Tests/Fixtures/response-functional/cookie_urlencode.expected @@ -4,8 +4,8 @@ Array [0] => Content-Type: text/plain; charset=utf-8 [1] => Cache-Control: no-cache, private [2] => Date: Sat, 12 Nov 1955 20:04:00 GMT - [3] => Set-Cookie: %3D%2C%3B%20%09%0D%0A%0B%0C=%3D%2C%3B%20%09%0D%0A%0B%0C; path=/ - [4] => Set-Cookie: ?*():@&+$/%#[]=%3F%2A%28%29%3A%40%26%2B%24%2F%25%23%5B%5D; path=/ - [5] => Set-Cookie: ?*():@&+$/%#[]=%3F%2A%28%29%3A%40%26%2B%24%2F%25%23%5B%5D; path=/ + [3] => Set-Cookie: %%3D%%2C%%3B%%20%%09%%0D%%0A%%0B%%0C=%%3D%%2C%%3B%%20%%09%%0D%%0A%%0B%%0C; path=/ + [4] => Set-Cookie: ?*():@&+$/%%#[]=%%3F%%2A%%28%%29%%3A%%40%%26%%2B%%24%%2F%%25%%23%%5B%%5D; path=/ + [5] => Set-Cookie: ?*():@&+$/%%#[]=%%3F%%2A%%28%%29%%3A%%40%%26%%2B%%24%%2F%%25%%23%%5B%%5D; path=/ ) shutdown diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php index 11c489f6b5c19..cb76e91d5ebd0 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\HttpFoundation\Tests\Session\Storage; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag; use Symfony\Component\HttpFoundation\Session\Flash\FlashBag; use Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler; @@ -33,8 +33,6 @@ */ class NativeSessionStorageTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private string $savePath; private $initialSessionSaveHandler; @@ -218,16 +216,17 @@ public function testCacheExpireOption() } /** - * @group legacy - * * The test must only be removed when the "session.trans_sid_tags" option is removed from PHP or when the "trans_sid_tags" option is no longer supported by the native session storage. */ + #[IgnoreDeprecations] public function testTransSidTagsOption() { - $this->expectUserDeprecationMessage('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "trans_sid_tags" option is deprecated and will be ignored in Symfony 8.0.'); + $deprecations = []; - $previousErrorHandler = set_error_handler(function ($errno, $errstr) use (&$previousErrorHandler) { + $previousErrorHandler = set_error_handler(function ($errno, $errstr) use (&$previousErrorHandler, &$deprecations) { if ('ini_set(): Usage of session.trans_sid_tags INI setting is deprecated' !== $errstr) { + $deprecations[] = $errstr; + return $previousErrorHandler ? $previousErrorHandler(...\func_get_args()) : false; } }); @@ -240,6 +239,8 @@ public function testTransSidTagsOption() restore_error_handler(); } + $this->assertCount(1, $deprecations); + $this->assertSame('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "trans_sid_tags" option is deprecated and will be ignored in Symfony 8.0.', $deprecations[0]); $this->assertSame('a=href', \ini_get('session.trans_sid_tags')); } @@ -365,18 +366,18 @@ public function testSaveHandlesNullSessionGracefully() $this->addToAssertionCount(1); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testPassingDeprecatedOptions() { - $this->expectUserDeprecationMessage('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "sid_length" option is deprecated and will be ignored in Symfony 8.0.'); - $this->expectUserDeprecationMessage('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "sid_bits_per_character" option is deprecated and will be ignored in Symfony 8.0.'); - $this->expectUserDeprecationMessage('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "referer_check" option is deprecated and will be ignored in Symfony 8.0.'); - $this->expectUserDeprecationMessage('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "use_only_cookies" option is deprecated and will be ignored in Symfony 8.0.'); - $this->expectUserDeprecationMessage('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "use_trans_sid" option is deprecated and will be ignored in Symfony 8.0.'); - $this->expectUserDeprecationMessage('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "trans_sid_hosts" option is deprecated and will be ignored in Symfony 8.0.'); - $this->expectUserDeprecationMessage('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "trans_sid_tags" option is deprecated and will be ignored in Symfony 8.0.'); + $deprecations = []; + + $previousErrorHandler = set_error_handler(function ($errno, $errstr) use (&$previousErrorHandler, &$deprecations) { + if (!preg_match('/^ini_set\(\):( Disabling| Usage of)? session\..+ is deprecated$/', $errstr)) { + $deprecations[] = $errstr; + + return $previousErrorHandler ? $previousErrorHandler(...\func_get_args()) : false; + } + }); $this->getStorage([ 'sid_length' => 42, @@ -387,5 +388,14 @@ public function testPassingDeprecatedOptions() 'trans_sid_hosts' => 'foo', 'trans_sid_tags' => 'foo', ]); + + $this->assertCount(7, $deprecations); + $this->assertContains('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "sid_length" option is deprecated and will be ignored in Symfony 8.0.', $deprecations); + $this->assertContains('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "sid_bits_per_character" option is deprecated and will be ignored in Symfony 8.0.', $deprecations); + $this->assertContains('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "referer_check" option is deprecated and will be ignored in Symfony 8.0.', $deprecations); + $this->assertContains('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "use_only_cookies" option is deprecated and will be ignored in Symfony 8.0.', $deprecations); + $this->assertContains('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "use_trans_sid" option is deprecated and will be ignored in Symfony 8.0.', $deprecations); + $this->assertContains('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "trans_sid_hosts" option is deprecated and will be ignored in Symfony 8.0.', $deprecations); + $this->assertContains('Since symfony/http-foundation 7.2: NativeSessionStorage\'s "trans_sid_tags" option is deprecated and will be ignored in Symfony 8.0.', $deprecations); } } diff --git a/src/Symfony/Component/HttpFoundation/phpunit.xml.dist b/src/Symfony/Component/HttpFoundation/phpunit.xml.dist index 66c8c18366de3..d41c4be860988 100644 --- a/src/Symfony/Component/HttpFoundation/phpunit.xml.dist +++ b/src/Symfony/Component/HttpFoundation/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -19,7 +20,7 @@ - + ./ @@ -28,5 +29,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/AddAnnotatedClassesToCachePassTest.php b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/AddAnnotatedClassesToCachePassTest.php index e57c349609ace..3e03f9d199887 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/AddAnnotatedClassesToCachePassTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/AddAnnotatedClassesToCachePassTest.php @@ -11,12 +11,11 @@ namespace Symfony\Component\HttpKernel\Tests\DependencyInjection; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\DependencyInjection\AddAnnotatedClassesToCachePass; -/** - * @group legacy - */ +#[IgnoreDeprecations] class AddAnnotatedClassesToCachePassTest extends TestCase { public function testExpandClasses() diff --git a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterControllerArgumentLocatorsPassTest.php b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterControllerArgumentLocatorsPassTest.php index a4b1e91d0afe1..c8ec6e3b6e854 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterControllerArgumentLocatorsPassTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterControllerArgumentLocatorsPassTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpKernel\Tests\DependencyInjection; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Argument\LazyClosure; use Symfony\Component\DependencyInjection\Argument\RewindableGenerator; @@ -519,9 +520,7 @@ public function testAutowireAttribute() $this->assertFalse($locator->has('service2')); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testTaggedIteratorAndTaggedLocatorAttributes() { $container = new ContainerBuilder(); diff --git a/src/Symfony/Component/HttpKernel/phpunit.xml.dist b/src/Symfony/Component/HttpKernel/phpunit.xml.dist index 7e2c738f869f1..d23535a6da457 100644 --- a/src/Symfony/Component/HttpKernel/phpunit.xml.dist +++ b/src/Symfony/Component/HttpKernel/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,15 +27,11 @@ ./Tests ./vendor - + - - - - - Symfony\Component\HttpFoundation - - - - + + + + + diff --git a/src/Symfony/Component/Intl/phpunit.xml.dist b/src/Symfony/Component/Intl/phpunit.xml.dist index 25aa1c1abc590..b4b25d0411786 100644 --- a/src/Symfony/Component/Intl/phpunit.xml.dist +++ b/src/Symfony/Component/Intl/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -24,7 +25,7 @@ - + ./ @@ -33,5 +34,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/JsonPath/phpunit.xml.dist b/src/Symfony/Component/JsonPath/phpunit.xml.dist index 8bbef439050b7..7a1154d943e7f 100644 --- a/src/Symfony/Component/JsonPath/phpunit.xml.dist +++ b/src/Symfony/Component/JsonPath/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/JsonStreamer/Tests/CacheWarmer/LazyGhostCacheWarmerTest.php b/src/Symfony/Component/JsonStreamer/Tests/CacheWarmer/LazyGhostCacheWarmerTest.php index fb10cc1c90d66..9145786d51976 100644 --- a/src/Symfony/Component/JsonStreamer/Tests/CacheWarmer/LazyGhostCacheWarmerTest.php +++ b/src/Symfony/Component/JsonStreamer/Tests/CacheWarmer/LazyGhostCacheWarmerTest.php @@ -11,13 +11,12 @@ namespace Symfony\Component\JsonStreamer\Tests\CacheWarmer; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\JsonStreamer\CacheWarmer\LazyGhostCacheWarmer; use Symfony\Component\JsonStreamer\Tests\Fixtures\Model\ClassicDummy; -/** - * @group legacy - */ +#[IgnoreDeprecations] class LazyGhostCacheWarmerTest extends TestCase { private string $lazyGhostsDir; diff --git a/src/Symfony/Component/JsonStreamer/phpunit.xml.dist b/src/Symfony/Component/JsonStreamer/phpunit.xml.dist index 403afcbb1d1bf..39010cda754d2 100644 --- a/src/Symfony/Component/JsonStreamer/phpunit.xml.dist +++ b/src/Symfony/Component/JsonStreamer/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Ldap/Tests/Adapter/AbstractQueryTest.php b/src/Symfony/Component/Ldap/Tests/Adapter/AbstractQueryTest.php index ca5c2e01d832f..1b72a074eedaa 100644 --- a/src/Symfony/Component/Ldap/Tests/Adapter/AbstractQueryTest.php +++ b/src/Symfony/Component/Ldap/Tests/Adapter/AbstractQueryTest.php @@ -11,19 +11,15 @@ namespace Symfony\Component\Ldap\Tests\Adapter; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Ldap\Adapter\AbstractQuery; use Symfony\Component\Ldap\Adapter\CollectionInterface; use Symfony\Component\Ldap\Adapter\ConnectionInterface; class AbstractQueryTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testSizeLimitIsDeprecated() { $this->expectUserDeprecationMessage('Since symfony/ldap 7.2: The "sizeLimit" option is deprecated and will be removed in Symfony 8.0.'); diff --git a/src/Symfony/Component/Ldap/phpunit.xml.dist b/src/Symfony/Component/Ldap/phpunit.xml.dist index 913a50b7fc5e5..73b79e1a95c2c 100644 --- a/src/Symfony/Component/Ldap/phpunit.xml.dist +++ b/src/Symfony/Component/Ldap/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -20,7 +21,7 @@ - + ./ @@ -28,5 +29,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Lock/phpunit.xml.dist b/src/Symfony/Component/Lock/phpunit.xml.dist index 4770c3a7cbe0e..d9a5802b667f0 100644 --- a/src/Symfony/Component/Lock/phpunit.xml.dist +++ b/src/Symfony/Component/Lock/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -22,7 +23,7 @@ - + ./ @@ -30,5 +31,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/AhaSend/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/AhaSend/phpunit.xml.dist index 389258219b0c9..08644304b93c0 100644 --- a/src/Symfony/Component/Mailer/Bridge/AhaSend/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/AhaSend/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Amazon/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Amazon/phpunit.xml.dist index 97db010e60c6a..e1430de0d355e 100644 --- a/src/Symfony/Component/Mailer/Bridge/Amazon/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Amazon/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Azure/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Azure/phpunit.xml.dist index 806393ddcd0bd..c04f6da17e89c 100644 --- a/src/Symfony/Component/Mailer/Bridge/Azure/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Azure/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Brevo/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Brevo/phpunit.xml.dist index e7fba0dbaf8e8..fe96aa7b9e2f3 100644 --- a/src/Symfony/Component/Mailer/Bridge/Brevo/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Brevo/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Google/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Google/phpunit.xml.dist index e6d13ad20928f..df013dbf4a2d7 100644 --- a/src/Symfony/Component/Mailer/Bridge/Google/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Google/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Infobip/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Infobip/phpunit.xml.dist index c149a080d9427..216ea4a6c225f 100644 --- a/src/Symfony/Component/Mailer/Bridge/Infobip/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Infobip/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/MailPace/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/MailPace/phpunit.xml.dist index a6de33e55c828..b74ec3d9ad9bc 100644 --- a/src/Symfony/Component/Mailer/Bridge/MailPace/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/MailPace/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Mailchimp/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Mailchimp/phpunit.xml.dist index b7443caa85a97..2247eb7772c77 100644 --- a/src/Symfony/Component/Mailer/Bridge/Mailchimp/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Mailchimp/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/MailerSend/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/MailerSend/phpunit.xml.dist index 993980b956171..0124e8dbf1f7e 100644 --- a/src/Symfony/Component/Mailer/Bridge/MailerSend/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/MailerSend/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Mailgun/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Mailgun/phpunit.xml.dist index dcc0a050cadf3..fe3fa69fec650 100644 --- a/src/Symfony/Component/Mailer/Bridge/Mailgun/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Mailgun/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Mailjet/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Mailjet/phpunit.xml.dist index 50c885293bb6d..d656b02946089 100644 --- a/src/Symfony/Component/Mailer/Bridge/Mailjet/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Mailjet/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Mailomat/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Mailomat/phpunit.xml.dist index 2f6ec572e2ecf..3ecd74ae2d62c 100644 --- a/src/Symfony/Component/Mailer/Bridge/Mailomat/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Mailomat/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Mailtrap/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Mailtrap/phpunit.xml.dist index 66332ce2b9cb9..e5a94a5a7c784 100644 --- a/src/Symfony/Component/Mailer/Bridge/Mailtrap/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Mailtrap/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Postal/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Postal/phpunit.xml.dist index 8e264cdc7d0f4..55fa20051da4a 100644 --- a/src/Symfony/Component/Mailer/Bridge/Postal/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Postal/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Postmark/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Postmark/phpunit.xml.dist index 0d56f703d4bbb..26de7cce4be26 100644 --- a/src/Symfony/Component/Mailer/Bridge/Postmark/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Postmark/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Resend/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Resend/phpunit.xml.dist index bd5f5f35442ec..1fbbb63f04cf7 100644 --- a/src/Symfony/Component/Mailer/Bridge/Resend/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Resend/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Scaleway/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Scaleway/phpunit.xml.dist index 7600aa9b6c756..658c472b76169 100644 --- a/src/Symfony/Component/Mailer/Bridge/Scaleway/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Scaleway/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Sendgrid/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Sendgrid/phpunit.xml.dist index a01a20ed8b243..4ddc9c20b680b 100644 --- a/src/Symfony/Component/Mailer/Bridge/Sendgrid/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Sendgrid/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/Bridge/Sweego/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Sweego/phpunit.xml.dist index e31a5e51fcde6..e7b685b93ee5e 100644 --- a/src/Symfony/Component/Mailer/Bridge/Sweego/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Sweego/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mailer/phpunit.xml.dist b/src/Symfony/Component/Mailer/phpunit.xml.dist index 69e3cbef1ef44..3f751f80e2f15 100644 --- a/src/Symfony/Component/Mailer/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Messenger/Bridge/AmazonSqs/phpunit.xml.dist b/src/Symfony/Component/Messenger/Bridge/AmazonSqs/phpunit.xml.dist index 342aa77daa41d..11a24ae5fbf8e 100644 --- a/src/Symfony/Component/Messenger/Bridge/AmazonSqs/phpunit.xml.dist +++ b/src/Symfony/Component/Messenger/Bridge/AmazonSqs/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Messenger/Bridge/Amqp/phpunit.xml.dist b/src/Symfony/Component/Messenger/Bridge/Amqp/phpunit.xml.dist index 943d59c877c73..81a7eeb572dce 100644 --- a/src/Symfony/Component/Messenger/Bridge/Amqp/phpunit.xml.dist +++ b/src/Symfony/Component/Messenger/Bridge/Amqp/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Messenger/Bridge/Beanstalkd/phpunit.xml.dist b/src/Symfony/Component/Messenger/Bridge/Beanstalkd/phpunit.xml.dist index e8becc762f599..93782e1c3149f 100644 --- a/src/Symfony/Component/Messenger/Bridge/Beanstalkd/phpunit.xml.dist +++ b/src/Symfony/Component/Messenger/Bridge/Beanstalkd/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Messenger/Bridge/Doctrine/phpunit.xml.dist b/src/Symfony/Component/Messenger/Bridge/Doctrine/phpunit.xml.dist index 506b27836b795..4218f55ee49d4 100644 --- a/src/Symfony/Component/Messenger/Bridge/Doctrine/phpunit.xml.dist +++ b/src/Symfony/Component/Messenger/Bridge/Doctrine/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Messenger/Bridge/Redis/phpunit.xml.dist b/src/Symfony/Component/Messenger/Bridge/Redis/phpunit.xml.dist index 48dda66e6165f..bd250fb6cd89c 100644 --- a/src/Symfony/Component/Messenger/Bridge/Redis/phpunit.xml.dist +++ b/src/Symfony/Component/Messenger/Bridge/Redis/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Messenger/phpunit.xml.dist b/src/Symfony/Component/Messenger/phpunit.xml.dist index 0686c84a14d33..dbc0bcab008b3 100644 --- a/src/Symfony/Component/Messenger/phpunit.xml.dist +++ b/src/Symfony/Component/Messenger/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Mime/phpunit.xml.dist b/src/Symfony/Component/Mime/phpunit.xml.dist index 9ccc292477a30..f2dc115a60ee1 100644 --- a/src/Symfony/Component/Mime/phpunit.xml.dist +++ b/src/Symfony/Component/Mime/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/AllMySms/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/AllMySms/phpunit.xml.dist index 804acd82f7ab9..b2e119058b241 100644 --- a/src/Symfony/Component/Notifier/Bridge/AllMySms/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/AllMySms/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/AmazonSns/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/AmazonSns/phpunit.xml.dist index f435307dcbc5b..2521d7b29a87e 100644 --- a/src/Symfony/Component/Notifier/Bridge/AmazonSns/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/AmazonSns/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Bandwidth/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Bandwidth/phpunit.xml.dist index 1371b1f96f7ec..349c2996e3c35 100644 --- a/src/Symfony/Component/Notifier/Bridge/Bandwidth/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Bandwidth/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Bluesky/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Bluesky/phpunit.xml.dist index 99623d7aefed3..83eb20afcaa0f 100644 --- a/src/Symfony/Component/Notifier/Bridge/Bluesky/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Bluesky/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Brevo/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Brevo/phpunit.xml.dist index a185c4f2adf76..7b9c28ca91ce5 100644 --- a/src/Symfony/Component/Notifier/Bridge/Brevo/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Brevo/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Chatwork/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Chatwork/phpunit.xml.dist index 155be9021e7b4..555e5f8ac1a06 100644 --- a/src/Symfony/Component/Notifier/Bridge/Chatwork/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Chatwork/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/ClickSend/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/ClickSend/phpunit.xml.dist index 5f9287c698e98..467e5f2b11272 100644 --- a/src/Symfony/Component/Notifier/Bridge/ClickSend/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/ClickSend/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Clickatell/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Clickatell/phpunit.xml.dist index be581a07a0bd3..ed38fd25a2988 100644 --- a/src/Symfony/Component/Notifier/Bridge/Clickatell/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Clickatell/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/ContactEveryone/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/ContactEveryone/phpunit.xml.dist index 392538089f0b1..6996fd916a942 100644 --- a/src/Symfony/Component/Notifier/Bridge/ContactEveryone/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/ContactEveryone/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Discord/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Discord/phpunit.xml.dist index e1d4d8d6006d2..ec6db48d567c0 100644 --- a/src/Symfony/Component/Notifier/Bridge/Discord/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Discord/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Engagespot/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Engagespot/phpunit.xml.dist index b01a4fa9c8b54..ace6824e0135f 100644 --- a/src/Symfony/Component/Notifier/Bridge/Engagespot/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Engagespot/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Esendex/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Esendex/phpunit.xml.dist index 68af2ab64b9b5..9ce6099662129 100644 --- a/src/Symfony/Component/Notifier/Bridge/Esendex/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Esendex/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Expo/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Expo/phpunit.xml.dist index 78b296c2e5893..1ea46afbfb259 100644 --- a/src/Symfony/Component/Notifier/Bridge/Expo/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Expo/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/FakeChat/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/FakeChat/phpunit.xml.dist index 0a6f1ba4d80d6..83cbb2241c31b 100644 --- a/src/Symfony/Component/Notifier/Bridge/FakeChat/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/FakeChat/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/FakeSms/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/FakeSms/phpunit.xml.dist index 84f83534a9c36..0a2581bb1344a 100644 --- a/src/Symfony/Component/Notifier/Bridge/FakeSms/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/FakeSms/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Firebase/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Firebase/phpunit.xml.dist index 0e54759cad975..691c2f23ee374 100644 --- a/src/Symfony/Component/Notifier/Bridge/Firebase/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Firebase/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/FortySixElks/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/FortySixElks/phpunit.xml.dist index 865ca790199b4..9e5ff92b3d352 100644 --- a/src/Symfony/Component/Notifier/Bridge/FortySixElks/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/FortySixElks/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/FreeMobile/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/FreeMobile/phpunit.xml.dist index 2360c3a0d897e..9368e4578d4cf 100644 --- a/src/Symfony/Component/Notifier/Bridge/FreeMobile/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/FreeMobile/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/GatewayApi/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/GatewayApi/phpunit.xml.dist index 6360acbdbb33f..3cb4fdf9b36aa 100644 --- a/src/Symfony/Component/Notifier/Bridge/GatewayApi/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/GatewayApi/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/GoIp/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/GoIp/phpunit.xml.dist index 7b9609b56f0d8..8c241bac9776e 100644 --- a/src/Symfony/Component/Notifier/Bridge/GoIp/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/GoIp/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/GoogleChat/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/GoogleChat/phpunit.xml.dist index 336cf1c0b01ab..3888256dbd9d8 100644 --- a/src/Symfony/Component/Notifier/Bridge/GoogleChat/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/GoogleChat/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Infobip/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Infobip/phpunit.xml.dist index 62f204544a084..cccec7e8b9c2c 100644 --- a/src/Symfony/Component/Notifier/Bridge/Infobip/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Infobip/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Iqsms/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Iqsms/phpunit.xml.dist index daf7d4e94bd20..6d5664e6b7976 100644 --- a/src/Symfony/Component/Notifier/Bridge/Iqsms/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Iqsms/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Isendpro/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Isendpro/phpunit.xml.dist index 11bcba3a27793..5f69d9f229df5 100644 --- a/src/Symfony/Component/Notifier/Bridge/Isendpro/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Isendpro/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/JoliNotif/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/JoliNotif/phpunit.xml.dist index 018d59bae1ff6..14a26d4cd15b4 100644 --- a/src/Symfony/Component/Notifier/Bridge/JoliNotif/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/JoliNotif/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/KazInfoTeh/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/KazInfoTeh/phpunit.xml.dist index b9e76f4faffcb..c248e08f9efce 100644 --- a/src/Symfony/Component/Notifier/Bridge/KazInfoTeh/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/KazInfoTeh/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/LightSms/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/LightSms/phpunit.xml.dist index 6b129743e07ea..971ae19ccce1f 100644 --- a/src/Symfony/Component/Notifier/Bridge/LightSms/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/LightSms/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/LineBot/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/LineBot/phpunit.xml.dist index 85f1320118f8c..98518cf9b3a0c 100644 --- a/src/Symfony/Component/Notifier/Bridge/LineBot/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/LineBot/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/LineNotify/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/LineNotify/phpunit.xml.dist index 6fb26783f338b..edcf0154115c4 100644 --- a/src/Symfony/Component/Notifier/Bridge/LineNotify/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/LineNotify/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/LinkedIn/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/LinkedIn/phpunit.xml.dist index d610bd58117fa..c1328210e5817 100644 --- a/src/Symfony/Component/Notifier/Bridge/LinkedIn/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/LinkedIn/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Lox24/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Lox24/phpunit.xml.dist index 28fd85cff3d4c..107589fb8fbd5 100644 --- a/src/Symfony/Component/Notifier/Bridge/Lox24/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Lox24/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Mailjet/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Mailjet/phpunit.xml.dist index f79d1ee1c638d..d2ab08b241581 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mailjet/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Mailjet/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Mastodon/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Mastodon/phpunit.xml.dist index 096fbc3c43f9d..4618d21c00578 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mastodon/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Mastodon/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Matrix/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Matrix/phpunit.xml.dist index 0fdbe6b1304a9..09a558b860acd 100644 --- a/src/Symfony/Component/Notifier/Bridge/Matrix/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Matrix/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Mattermost/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Mattermost/phpunit.xml.dist index ad154b89c5184..c19ed651f2c5f 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mattermost/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Mattermost/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Mercure/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Mercure/phpunit.xml.dist index 9aed9cdbd7d82..e03dbda94401f 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mercure/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Mercure/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/MessageBird/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/MessageBird/phpunit.xml.dist index 6e3e6531588be..b0550084ed036 100644 --- a/src/Symfony/Component/Notifier/Bridge/MessageBird/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/MessageBird/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/MessageMedia/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/MessageMedia/phpunit.xml.dist index 7fd1fbc068814..e63f72f42eeb9 100644 --- a/src/Symfony/Component/Notifier/Bridge/MessageMedia/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/MessageMedia/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/phpunit.xml.dist index cc16599fac1ec..65437d6b28307 100644 --- a/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Mobyt/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Mobyt/phpunit.xml.dist index 9dcae49197e3e..1fc35ae0f77ed 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mobyt/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Mobyt/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Novu/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Novu/phpunit.xml.dist index 36bca0d250731..90edde5aee135 100644 --- a/src/Symfony/Component/Notifier/Bridge/Novu/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Novu/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Ntfy/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Ntfy/phpunit.xml.dist index 73f16d5565523..42f9b09b05786 100644 --- a/src/Symfony/Component/Notifier/Bridge/Ntfy/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Ntfy/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Octopush/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Octopush/phpunit.xml.dist index fc27b3894ae58..5f56cddb74fe8 100644 --- a/src/Symfony/Component/Notifier/Bridge/Octopush/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Octopush/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/OneSignal/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/OneSignal/phpunit.xml.dist index d988e3ce8d5fb..766e8e6bec811 100644 --- a/src/Symfony/Component/Notifier/Bridge/OneSignal/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/OneSignal/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/OrangeSms/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/OrangeSms/phpunit.xml.dist index 99f414edbfd52..4c77905b39ed7 100644 --- a/src/Symfony/Component/Notifier/Bridge/OrangeSms/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/OrangeSms/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/OvhCloud/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/OvhCloud/phpunit.xml.dist index da72a6b1ea42e..ddb7c9c22175f 100644 --- a/src/Symfony/Component/Notifier/Bridge/OvhCloud/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/OvhCloud/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/PagerDuty/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/PagerDuty/phpunit.xml.dist index 27af4d4b826a0..1288eaf8002bb 100644 --- a/src/Symfony/Component/Notifier/Bridge/PagerDuty/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/PagerDuty/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Plivo/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Plivo/phpunit.xml.dist index cc84e156ea321..a04c7b8523de1 100644 --- a/src/Symfony/Component/Notifier/Bridge/Plivo/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Plivo/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Primotexto/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Primotexto/phpunit.xml.dist index 53b0186de4e49..d116cf26f91a2 100644 --- a/src/Symfony/Component/Notifier/Bridge/Primotexto/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Primotexto/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Pushover/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Pushover/phpunit.xml.dist index 89349c102ebde..0301abe7f521e 100644 --- a/src/Symfony/Component/Notifier/Bridge/Pushover/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Pushover/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Pushy/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Pushy/phpunit.xml.dist index 91633ca9845f1..70c039868dd5b 100644 --- a/src/Symfony/Component/Notifier/Bridge/Pushy/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Pushy/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Redlink/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Redlink/phpunit.xml.dist index ba9ade8a6b847..4c8328b13e19f 100644 --- a/src/Symfony/Component/Notifier/Bridge/Redlink/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Redlink/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/RingCentral/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/RingCentral/phpunit.xml.dist index b570792cc3937..2938620e27eae 100644 --- a/src/Symfony/Component/Notifier/Bridge/RingCentral/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/RingCentral/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/RocketChat/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/RocketChat/phpunit.xml.dist index f8be0a85a6d5f..8825c9978ce21 100644 --- a/src/Symfony/Component/Notifier/Bridge/RocketChat/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/RocketChat/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Sendberry/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Sendberry/phpunit.xml.dist index c18bf58433cde..5d727c28193ef 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sendberry/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Sendberry/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Sevenio/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Sevenio/phpunit.xml.dist index a4df2d258cad2..b0345bab03476 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sevenio/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Sevenio/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/SimpleTextin/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/SimpleTextin/phpunit.xml.dist index 869f16f92a8c8..e64eb0ac1b698 100644 --- a/src/Symfony/Component/Notifier/Bridge/SimpleTextin/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/SimpleTextin/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Sinch/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Sinch/phpunit.xml.dist index c501b350ee9a3..cfa584a1a6423 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sinch/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Sinch/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Sipgate/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Sipgate/phpunit.xml.dist index 4a90d6aecfdc2..1a0c5615a2f6b 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sipgate/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Sipgate/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Slack/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Slack/phpunit.xml.dist index 8d03df4f3064c..edab56e069dfa 100644 --- a/src/Symfony/Component/Notifier/Bridge/Slack/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Slack/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportFactoryTest.php b/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportFactoryTest.php index 6d00014af1e2a..fae09f5a4b7e8 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportFactoryTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportFactoryTest.php @@ -11,13 +11,12 @@ namespace Symfony\Component\Notifier\Bridge\Sms77\Tests; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Notifier\Bridge\Sms77\Sms77TransportFactory; use Symfony\Component\Notifier\Test\AbstractTransportFactoryTestCase; use Symfony\Component\Notifier\Test\IncompleteDsnTestTrait; -/** - * @group legacy - */ +#[IgnoreDeprecations] final class Sms77TransportFactoryTest extends AbstractTransportFactoryTestCase { use IncompleteDsnTestTrait; diff --git a/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportTest.php b/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportTest.php index 0d45b84d84577..1b8378a7791b5 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Sms77/Tests/Sms77TransportTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Notifier\Bridge\Sms77\Tests; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\Sms77\Sms77Transport; use Symfony\Component\Notifier\Message\ChatMessage; @@ -19,9 +20,7 @@ use Symfony\Component\Notifier\Tests\Transport\DummyMessage; use Symfony\Contracts\HttpClient\HttpClientInterface; -/** - * @group legacy - */ +#[IgnoreDeprecations] final class Sms77TransportTest extends TransportTestCase { public static function createTransport(?HttpClientInterface $client = null, ?string $from = null): Sms77Transport diff --git a/src/Symfony/Component/Notifier/Bridge/Sms77/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Sms77/phpunit.xml.dist index 911ede42fbcdf..900ea053926d9 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sms77/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Sms77/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/SmsBiuras/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/SmsBiuras/phpunit.xml.dist index 51687ee1d2a0b..9d8f21f61e3a6 100644 --- a/src/Symfony/Component/Notifier/Bridge/SmsBiuras/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/SmsBiuras/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/SmsFactor/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/SmsFactor/phpunit.xml.dist index 3ca6ea5c02f58..6d977fe99422a 100644 --- a/src/Symfony/Component/Notifier/Bridge/SmsFactor/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/SmsFactor/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/SmsSluzba/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/SmsSluzba/phpunit.xml.dist index 960872593a899..e10629ff0bc45 100644 --- a/src/Symfony/Component/Notifier/Bridge/SmsSluzba/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/SmsSluzba/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Smsapi/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Smsapi/phpunit.xml.dist index e68e7a1bd2ba8..0154ed97d30e7 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsapi/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Smsapi/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Smsbox/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Smsbox/phpunit.xml.dist index ecacbe3789c67..d021d35e1406e 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsbox/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Smsbox/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Smsc/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Smsc/phpunit.xml.dist index 93485fd80b0eb..9304344f90770 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsc/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Smsc/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,13 +19,17 @@ - - + + ./ - - ./Tests - ./vendor - - - + + + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Smsense/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Smsense/phpunit.xml.dist index cb6eeb9e81f4b..666759b045fa7 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsense/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Smsense/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Smsmode/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Smsmode/phpunit.xml.dist index 16d3aa7a96d74..07db29eee49c2 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsmode/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Smsmode/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/SpotHit/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/SpotHit/phpunit.xml.dist index 80bd2d318d9e9..fff2b199aa474 100644 --- a/src/Symfony/Component/Notifier/Bridge/SpotHit/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/SpotHit/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Sweego/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Sweego/phpunit.xml.dist index bc57d5334c6e1..e27827e44ef97 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sweego/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Sweego/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Telegram/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Telegram/phpunit.xml.dist index c6e0a30f8df83..30fbbb562f601 100644 --- a/src/Symfony/Component/Notifier/Bridge/Telegram/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Telegram/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Telnyx/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Telnyx/phpunit.xml.dist index f959ed7a2e194..36dec4eeecce2 100644 --- a/src/Symfony/Component/Notifier/Bridge/Telnyx/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Telnyx/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Termii/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Termii/phpunit.xml.dist index 33dc8c12fe5da..571e1e86f7842 100644 --- a/src/Symfony/Component/Notifier/Bridge/Termii/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Termii/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/TurboSms/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/TurboSms/phpunit.xml.dist index bd2eeb96c81f6..2079321ef1f27 100644 --- a/src/Symfony/Component/Notifier/Bridge/TurboSms/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/TurboSms/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Twilio/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Twilio/phpunit.xml.dist index 229c7c5d9314b..499f3950115bf 100644 --- a/src/Symfony/Component/Notifier/Bridge/Twilio/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Twilio/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Twitter/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Twitter/phpunit.xml.dist index f486d936888b9..722abbf5bfd0e 100644 --- a/src/Symfony/Component/Notifier/Bridge/Twitter/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Twitter/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Unifonic/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Unifonic/phpunit.xml.dist index 92bdf6bb4d2c8..ef050780745f1 100644 --- a/src/Symfony/Component/Notifier/Bridge/Unifonic/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Unifonic/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Vonage/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Vonage/phpunit.xml.dist index 84bc254ccab03..b22c6e00e070d 100644 --- a/src/Symfony/Component/Notifier/Bridge/Vonage/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Vonage/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Yunpian/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Yunpian/phpunit.xml.dist index eb3426338e291..f1bd444b1c9a5 100644 --- a/src/Symfony/Component/Notifier/Bridge/Yunpian/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Yunpian/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Zendesk/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Zendesk/phpunit.xml.dist index 5bd9816e2cf8b..559c4ad99ab89 100644 --- a/src/Symfony/Component/Notifier/Bridge/Zendesk/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Zendesk/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/Bridge/Zulip/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Zulip/phpunit.xml.dist index 0e2fb9c5febba..6ed13f15562b3 100644 --- a/src/Symfony/Component/Notifier/Bridge/Zulip/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Zulip/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Notifier/phpunit.xml.dist b/src/Symfony/Component/Notifier/phpunit.xml.dist index 89aea157d7590..b0c9899b82d79 100644 --- a/src/Symfony/Component/Notifier/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/ObjectMapper/phpunit.xml.dist b/src/Symfony/Component/ObjectMapper/phpunit.xml.dist index 403928c6487ea..f67fdb988626a 100644 --- a/src/Symfony/Component/ObjectMapper/phpunit.xml.dist +++ b/src/Symfony/Component/ObjectMapper/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/OptionsResolver/Tests/OptionsResolverTest.php b/src/Symfony/Component/OptionsResolver/Tests/OptionsResolverTest.php index 411e161696c43..72cb75ffbd4a1 100644 --- a/src/Symfony/Component/OptionsResolver/Tests/OptionsResolverTest.php +++ b/src/Symfony/Component/OptionsResolver/Tests/OptionsResolverTest.php @@ -12,8 +12,8 @@ namespace Symfony\Component\OptionsResolver\Tests; use PHPUnit\Framework\Assert; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\OptionsResolver\Debug\OptionsResolverIntrospector; use Symfony\Component\OptionsResolver\Exception\AccessException; use Symfony\Component\OptionsResolver\Exception\InvalidArgumentException; @@ -27,8 +27,6 @@ class OptionsResolverTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private OptionsResolver $resolver; protected function setUp(): void @@ -1094,9 +1092,7 @@ public function testFailIfSetAllowedValuesFromLazyOption() $this->resolver->resolve(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyResolveFailsIfInvalidValueFromNestedOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -1113,9 +1109,7 @@ public function testLegacyResolveFailsIfInvalidValueFromNestedOption() $this->resolver->resolve(['foo' => ['bar' => 'invalid value']]); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyResolveFailsIfInvalidTypeFromNestedOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2111,9 +2105,7 @@ public function testNestedArrayException5() ]); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyIsNestedOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2126,9 +2118,7 @@ public function testLegacyIsNestedOption() $this->assertTrue($this->resolver->isNested('database')); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyFailsIfUndefinedNestedOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2148,9 +2138,7 @@ public function testLegacyFailsIfUndefinedNestedOption() ]); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyFailsIfMissingRequiredNestedOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2170,9 +2158,7 @@ public function testLegacyFailsIfMissingRequiredNestedOption() ]); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyFailsIfInvalidTypeNestedOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2194,9 +2180,7 @@ public function testLegacyFailsIfInvalidTypeNestedOption() ]); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyFailsIfNotArrayIsGivenForNestedOptions() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2216,9 +2200,7 @@ public function testLegacyFailsIfNotArrayIsGivenForNestedOptions() ]); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyResolveNestedOptionsWithoutDefault() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2237,9 +2219,7 @@ public function testLegacyResolveNestedOptionsWithoutDefault() $this->assertSame($expectedOptions, $actualOptions); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyResolveNestedOptionsWithDefault() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2264,9 +2244,7 @@ public function testLegacyResolveNestedOptionsWithDefault() $this->assertSame($expectedOptions, $actualOptions); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyResolveMultipleNestedOptions() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2308,9 +2286,7 @@ public function testLegacyResolveMultipleNestedOptions() $this->assertSame($expectedOptions, $actualOptions); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyResolveLazyOptionUsingNestedOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2329,9 +2305,7 @@ public function testLegacyResolveLazyOptionUsingNestedOption() $this->assertSame($expectedOptions, $actualOptions); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyNormalizeNestedOptionValue() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2360,9 +2334,7 @@ public function testLegacyNormalizeNestedOptionValue() $this->assertSame($expectedOptions, $actualOptions); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testOverwrittenNestedOptionNotEvaluatedIfLazyDefault() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2376,9 +2348,7 @@ public function testOverwrittenNestedOptionNotEvaluatedIfLazyDefault() $this->assertSame(['foo' => 'lazy'], $this->resolver->resolve()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testOverwrittenNestedOptionNotEvaluatedIfScalarDefault() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2392,9 +2362,7 @@ public function testOverwrittenNestedOptionNotEvaluatedIfScalarDefault() $this->assertSame(['foo' => 'bar'], $this->resolver->resolve()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testOverwrittenLazyOptionNotEvaluatedIfNestedOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2410,9 +2378,7 @@ public function testOverwrittenLazyOptionNotEvaluatedIfNestedOption() $this->assertSame(['foo' => ['bar' => 'baz']], $this->resolver->resolve()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyResolveAllNestedOptionDefinitions() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2432,9 +2398,7 @@ public function testLegacyResolveAllNestedOptionDefinitions() $this->assertSame(['foo' => ['ping' => 'pong', 'bar' => 'baz']], $this->resolver->resolve()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyNormalizeNestedValue() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2452,9 +2416,7 @@ public function testLegacyNormalizeNestedValue() $this->assertSame(['foo' => ['bar' => 'baz']], $this->resolver->resolve()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyFailsIfCyclicDependencyBetweenSameNestedOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2468,9 +2430,7 @@ public function testLegacyFailsIfCyclicDependencyBetweenSameNestedOption() $this->resolver->resolve(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyFailsIfCyclicDependencyBetweenNestedOptionAndParentLazyOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2487,9 +2447,7 @@ public function testLegacyFailsIfCyclicDependencyBetweenNestedOptionAndParentLaz $this->resolver->resolve(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyFailsIfCyclicDependencyBetweenNormalizerAndNestedOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2508,9 +2466,7 @@ public function testLegacyFailsIfCyclicDependencyBetweenNormalizerAndNestedOptio $this->resolver->resolve(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyFailsIfCyclicDependencyBetweenNestedOptions() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2527,9 +2483,7 @@ public function testLegacyFailsIfCyclicDependencyBetweenNestedOptions() $this->resolver->resolve(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyGetAccessToParentOptionFromNestedOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2561,9 +2515,7 @@ public function testNestedClosureWithoutTypeHint2ndArgumentNotInvoked() $this->assertSame(['foo' => $closure], $this->resolver->resolve()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyResolveLazyOptionWithTransitiveDefaultDependency() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2590,9 +2542,7 @@ public function testLegacyResolveLazyOptionWithTransitiveDefaultDependency() $this->assertSame($expectedOptions, $actualOptions); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyAccessToParentOptionFromNestedNormalizerAndLazyOption() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2721,9 +2671,7 @@ public function testInfoOnInvalidValue() $this->resolver->resolve(['expires' => new \DateTimeImmutable('-1 hour')]); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyInvalidValueForPrototypeDefinition() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2741,9 +2689,7 @@ public function testLegacyInvalidValueForPrototypeDefinition() $this->resolver->resolve(['connections' => ['foo']]); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyMissingOptionForPrototypeDefinition() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); @@ -2772,9 +2718,7 @@ public function testAccessExceptionOnPrototypeDefinition() $this->resolver->setPrototype(true); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyPrototypeDefinition() { $this->expectUserDeprecationMessage('Since symfony/options-resolver 7.3: Defining nested options via "Symfony\Component\OptionsResolver\OptionsResolver::setDefault()" is deprecated and will be removed in Symfony 8.0, use "setOptions()" method instead.'); diff --git a/src/Symfony/Component/OptionsResolver/phpunit.xml.dist b/src/Symfony/Component/OptionsResolver/phpunit.xml.dist index 3b3d1831d61b0..58095f4a57a8a 100644 --- a/src/Symfony/Component/OptionsResolver/phpunit.xml.dist +++ b/src/Symfony/Component/OptionsResolver/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/PasswordHasher/phpunit.xml.dist b/src/Symfony/Component/PasswordHasher/phpunit.xml.dist index f9917cc3be3f3..57fdcd18ea23f 100644 --- a/src/Symfony/Component/PasswordHasher/phpunit.xml.dist +++ b/src/Symfony/Component/PasswordHasher/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Process/phpunit.xml.dist b/src/Symfony/Component/Process/phpunit.xml.dist index 13bd3f839a28a..c62cac132ee60 100644 --- a/src/Symfony/Component/Process/phpunit.xml.dist +++ b/src/Symfony/Component/Process/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/PropertyAccess/phpunit.xml.dist b/src/Symfony/Component/PropertyAccess/phpunit.xml.dist index db0be25f3f0d6..b8bd00a46a5ea 100644 --- a/src/Symfony/Component/PropertyAccess/phpunit.xml.dist +++ b/src/Symfony/Component/PropertyAccess/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/PropertyInfo/Tests/AbstractPropertyInfoExtractorTest.php b/src/Symfony/Component/PropertyInfo/Tests/AbstractPropertyInfoExtractorTest.php index 6f5c67131124e..f7f066712d7f9 100644 --- a/src/Symfony/Component/PropertyInfo/Tests/AbstractPropertyInfoExtractorTest.php +++ b/src/Symfony/Component/PropertyInfo/Tests/AbstractPropertyInfoExtractorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\PropertyInfo\Tests; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface; use Symfony\Component\PropertyInfo\PropertyDescriptionExtractorInterface; @@ -60,9 +61,7 @@ public function testGetType() $this->assertEquals(Type::int(), $this->propertyInfo->getType('Foo', 'bar', [])); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testGetTypes() { $this->assertEquals([new LegacyType(LegacyType::BUILTIN_TYPE_INT)], $this->propertyInfo->getTypes('Foo', 'bar', [])); diff --git a/src/Symfony/Component/PropertyInfo/Tests/Extractor/ConstructorExtractorTest.php b/src/Symfony/Component/PropertyInfo/Tests/Extractor/ConstructorExtractorTest.php index 6f6b7849f59b9..a311bd46167a7 100644 --- a/src/Symfony/Component/PropertyInfo/Tests/Extractor/ConstructorExtractorTest.php +++ b/src/Symfony/Component/PropertyInfo/Tests/Extractor/ConstructorExtractorTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\PropertyInfo\Tests\Extractor; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\PropertyInfo\Extractor\ConstructorExtractor; use Symfony\Component\PropertyInfo\Tests\Fixtures\DummyExtractor; use Symfony\Component\PropertyInfo\Type as LegacyType; @@ -23,8 +23,6 @@ */ class ConstructorExtractorTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private ConstructorExtractor $extractor; protected function setUp(): void @@ -48,9 +46,7 @@ public function testGetTypeIfNoExtractors() $this->assertNull($extractor->getType('Foo', 'bar', [])); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testGetTypes() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\ConstructorExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\ConstructorExtractor::getType()" instead.'); @@ -58,9 +54,7 @@ public function testGetTypes() $this->assertEquals([new LegacyType(LegacyType::BUILTIN_TYPE_STRING)], $this->extractor->getTypes('Foo', 'bar', [])); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testGetTypesIfNoExtractors() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\ConstructorExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\ConstructorExtractor::getType()" instead.'); diff --git a/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php b/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php index f86527ad59f01..66404d7692e40 100644 --- a/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php +++ b/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php @@ -12,8 +12,9 @@ namespace Symfony\Component\PropertyInfo\Tests\Extractor; use phpDocumentor\Reflection\DocBlock; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor; use Symfony\Component\PropertyInfo\Tests\Fixtures\ConstructorDummy; use Symfony\Component\PropertyInfo\Tests\Fixtures\DockBlockFallback; @@ -35,8 +36,6 @@ */ class PhpDocExtractorTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private PhpDocExtractor $extractor; protected function setUp(): void @@ -44,11 +43,8 @@ protected function setUp(): void $this->extractor = new PhpDocExtractor(); } - /** - * @group legacy - * - * @dataProvider provideLegacyTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyTypes')] public function testExtractLegacy($property, ?array $type, $shortDescription, $longDescription) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -71,9 +67,7 @@ public function testGetDocBlock() $this->assertNull($docBlock); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testParamTagTypeIsOmittedLegacy() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -90,11 +84,8 @@ public static function provideLegacyInvalidTypes() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyInvalidTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyInvalidTypes')] public function testInvalidLegacy($property, $shortDescription, $longDescription) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -104,9 +95,7 @@ public function testInvalidLegacy($property, $shortDescription, $longDescription $this->assertSame($longDescription, $this->extractor->getLongDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', $property)); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testEmptyParamAnnotationLegacy() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -116,11 +105,8 @@ public function testEmptyParamAnnotationLegacy() $this->assertNull($this->extractor->getLongDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', 'foo')); } - /** - * @group legacy - * - * @dataProvider provideLegacyTypesWithNoPrefixes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyTypesWithNoPrefixes')] public function testExtractTypesWithNoPrefixesLegacy($property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -182,11 +168,8 @@ public static function provideLegacyTypes() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyCollectionTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyCollectionTypes')] public function testExtractCollectionLegacy($property, ?array $type, $shortDescription, $longDescription) { $this->testExtractLegacy($property, $type, $shortDescription, $longDescription); @@ -246,11 +229,8 @@ public static function provideLegacyCollectionTypes() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyTypesWithCustomPrefixes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyTypesWithCustomPrefixes')] public function testExtractTypesWithCustomPrefixesLegacy($property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -364,11 +344,8 @@ public static function provideLegacyDockBlockFallbackTypes() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyDockBlockFallbackTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyDockBlockFallbackTypes')] public function testDocBlockFallbackLegacy($property, $types) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -376,11 +353,8 @@ public function testDocBlockFallbackLegacy($property, $types) $this->assertEquals($types, $this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\DockBlockFallback', $property)); } - /** - * @group legacy - * - * @dataProvider provideLegacyPropertiesDefinedByTraits - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPropertiesDefinedByTraits')] public function testPropertiesDefinedByTraitsLegacy(string $property, LegacyType $type) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -400,11 +374,8 @@ public static function provideLegacyPropertiesDefinedByTraits(): array ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyMethodsDefinedByTraits - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyMethodsDefinedByTraits')] public function testMethodsDefinedByTraitsLegacy(string $property, LegacyType $type) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -424,11 +395,8 @@ public static function provideLegacyMethodsDefinedByTraits(): array ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyPropertiesStaticType - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPropertiesStaticType')] public function testPropertiesStaticTypeLegacy(string $class, string $property, LegacyType $type) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -444,11 +412,8 @@ public static function provideLegacyPropertiesStaticType(): array ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyPropertiesParentType - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPropertiesParentType')] public function testPropertiesParentTypeLegacy(string $class, string $property, ?array $types) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -464,9 +429,7 @@ public static function provideLegacyPropertiesParentType(): array ]; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testUnknownPseudoTypeLegacy() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -474,9 +437,7 @@ public function testUnknownPseudoTypeLegacy() $this->assertEquals([new LegacyType(LegacyType::BUILTIN_TYPE_OBJECT, false, 'scalar')], $this->extractor->getTypes(PseudoTypeDummy::class, 'unknownPseudoType')); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testGenericInterface() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -484,11 +445,8 @@ public function testGenericInterface() $this->assertNull($this->extractor->getTypes(Dummy::class, 'genericInterface')); } - /** - * @group legacy - * - * @dataProvider provideLegacyConstructorTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyConstructorTypes')] public function testExtractConstructorTypesLegacy($property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypesFromConstructor()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypeFromConstructor()" instead.'); @@ -508,11 +466,8 @@ public static function provideLegacyConstructorTypes() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyPseudoTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPseudoTypes')] public function testPseudoTypesLegacy($property, array $type) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); @@ -535,11 +490,8 @@ public static function provideLegacyPseudoTypes(): array ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyPromotedProperty - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPromotedProperty')] public function testExtractPromotedPropertyLegacy(string $property, ?array $types) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor::getType()" instead.'); diff --git a/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php b/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php index a7d36203d49c6..4ed5c6514eeac 100644 --- a/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php +++ b/src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpStanExtractorTest.php @@ -11,8 +11,9 @@ namespace Symfony\Component\PropertyInfo\Tests\Extractor; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor; use Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor; use Symfony\Component\PropertyInfo\Tests\Fixtures\Clazz; @@ -49,8 +50,6 @@ */ class PhpStanExtractorTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private PhpStanExtractor $extractor; private PhpDocExtractor $phpDocExtractor; @@ -60,11 +59,8 @@ protected function setUp(): void $this->phpDocExtractor = new PhpDocExtractor(); } - /** - * @group legacy - * - * @dataProvider provideLegacyTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyTypes')] public function testExtractLegacy($property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -72,9 +68,7 @@ public function testExtractLegacy($property, ?array $type = null) $this->assertEquals($type, $this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy', $property)); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testParamTagTypeIsOmittedLegacy() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -92,11 +86,8 @@ public static function provideLegacyInvalidTypes() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyInvalidTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyInvalidTypes')] public function testInvalidLegacy($property) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -104,11 +95,8 @@ public function testInvalidLegacy($property) $this->assertNull($this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', $property)); } - /** - * @group legacy - * - * @dataProvider provideLegacyTypesWithNoPrefixes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyTypesWithNoPrefixes')] public function testExtractTypesWithNoPrefixesLegacy($property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -164,11 +152,8 @@ public static function provideLegacyTypes() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyCollectionTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyCollectionTypes')] public function testExtractCollectionLegacy($property, ?array $type = null) { $this->testExtractLegacy($property, $type); @@ -222,11 +207,8 @@ public static function provideLegacyCollectionTypes() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyTypesWithCustomPrefixes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyTypesWithCustomPrefixes')] public function testExtractTypesWithCustomPrefixesLegacy($property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -327,11 +309,8 @@ public static function provideLegacyDockBlockFallbackTypes() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyDockBlockFallbackTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyDockBlockFallbackTypes')] public function testDocBlockFallbackLegacy($property, $types) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -339,11 +318,8 @@ public function testDocBlockFallbackLegacy($property, $types) $this->assertEquals($types, $this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\DockBlockFallback', $property)); } - /** - * @group legacy - * - * @dataProvider provideLegacyPropertiesDefinedByTraits - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPropertiesDefinedByTraits')] public function testPropertiesDefinedByTraitsLegacy(string $property, LegacyType $type) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -361,11 +337,8 @@ public static function provideLegacyPropertiesDefinedByTraits(): array ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyPropertiesStaticType - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPropertiesStaticType')] public function testPropertiesStaticTypeLegacy(string $class, string $property, LegacyType $type) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -381,11 +354,8 @@ public static function provideLegacyPropertiesStaticType(): array ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyPropertiesParentType - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPropertiesParentType')] public function testPropertiesParentTypeLegacy(string $class, string $property, ?array $types) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -401,11 +371,8 @@ public static function provideLegacyPropertiesParentType(): array ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyConstructorTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyConstructorTypes')] public function testExtractConstructorTypesLegacy($property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypesFromConstructor()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypeFromConstructor()" instead.'); @@ -413,11 +380,8 @@ public function testExtractConstructorTypesLegacy($property, ?array $type = null $this->assertEquals($type, $this->extractor->getTypesFromConstructor('Symfony\Component\PropertyInfo\Tests\Fixtures\ConstructorDummy', $property)); } - /** - * @group legacy - * - * @dataProvider provideLegacyConstructorTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyConstructorTypes')] public function testExtractConstructorTypesReturnNullOnEmptyDocBlockLegacy($property) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypesFromConstructor()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypeFromConstructor()" instead.'); @@ -436,11 +400,8 @@ public static function provideLegacyConstructorTypes() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyUnionTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyUnionTypes')] public function testExtractorUnionTypesLegacy(string $property, ?array $types) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -461,11 +422,8 @@ public static function provideLegacyUnionTypes(): array ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyPseudoTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPseudoTypes')] public function testPseudoTypesLegacy($property, array $type) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -501,9 +459,7 @@ public static function provideLegacyPseudoTypes(): array ]; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testDummyNamespaceLegacy() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -514,9 +470,7 @@ public function testDummyNamespaceLegacy() ); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testDummyNamespaceWithPropertyLegacy() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -528,11 +482,8 @@ public function testDummyNamespaceWithPropertyLegacy() $this->assertEquals($phpDocTypes[0]->getClassName(), $phpStanTypes[0]->getClassName()); } - /** - * @group legacy - * - * @dataProvider provideLegacyIntRangeType - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyIntRangeType')] public function testExtractorIntRangeTypeLegacy(string $property, ?array $types) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -549,11 +500,8 @@ public static function provideLegacyIntRangeType(): array ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyPhp80Types - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPhp80Types')] public function testExtractPhp80TypeLegacy(string $class, $property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -573,11 +521,8 @@ public static function provideLegacyPhp80Types() ]; } - /** - * @group legacy - * - * @dataProvider allowPrivateAccessLegacyProvider - */ + #[IgnoreDeprecations] + #[DataProvider('allowPrivateAccessLegacyProvider')] public function testAllowPrivateAccessLegacy(bool $allowPrivateAccess, array $expectedTypes) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); @@ -598,12 +543,10 @@ public static function allowPrivateAccessLegacyProvider(): array } /** - * @group legacy - * * @param list $expectedTypes - * - * @dataProvider legacyGenericsProvider */ + #[IgnoreDeprecations] + #[DataProvider('legacyGenericsProvider')] public function testGenericsLegacy(string $property, array $expectedTypes) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\PhpStanExtractor::getType()" instead.'); diff --git a/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php b/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php index fbf365ea5f2c4..c257b3e3603b8 100644 --- a/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php +++ b/src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php @@ -11,8 +11,9 @@ namespace Symfony\Component\PropertyInfo\Tests\Extractor; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor; use Symfony\Component\PropertyInfo\PropertyReadInfo; use Symfony\Component\PropertyInfo\PropertyWriteInfo; @@ -43,8 +44,6 @@ */ class ReflectionExtractorTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private ReflectionExtractor $extractor; protected function setUp(): void @@ -223,11 +222,8 @@ public function testGetPropertiesWithNoPrefixes() ); } - /** - * @group legacy - * - * @dataProvider provideLegacyTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyTypes')] public function testExtractorsLegacy($property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getType()" instead.'); @@ -254,11 +250,8 @@ public static function provideLegacyTypes() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyPhp7Types - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPhp7Types')] public function testExtractPhp7TypeLegacy(string $class, string $property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getType()" instead.'); @@ -279,11 +272,8 @@ public static function provideLegacyPhp7Types() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyPhp71Types - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPhp71Types')] public function testExtractPhp71TypeLegacy($property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getType()" instead.'); @@ -302,11 +292,8 @@ public static function provideLegacyPhp71Types() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyPhp80Types - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPhp80Types')] public function testExtractPhp80TypeLegacy(string $property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getType()" instead.'); @@ -328,11 +315,8 @@ public static function provideLegacyPhp80Types() ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyPhp81Types - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPhp81Types')] public function testExtractPhp81TypeLegacy(string $property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getType()" instead.'); @@ -353,11 +337,8 @@ public function testReadonlyPropertiesAreNotWriteable() $this->assertFalse($this->extractor->isWritable(Php81Dummy::class, 'foo')); } - /** - * @group legacy - * - * @dataProvider provideLegacyPhp82Types - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyPhp82Types')] public function testExtractPhp82TypeLegacy(string $property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getType()" instead.'); @@ -376,11 +357,8 @@ public static function provideLegacyPhp82Types(): iterable yield ['someCollection', null]; } - /** - * @group legacy - * - * @dataProvider provideLegacyDefaultValue - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyDefaultValue')] public function testExtractWithDefaultValueLegacy($property, $type) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getType()" instead.'); @@ -521,11 +499,8 @@ public static function getInitializableProperties(): array ]; } - /** - * @group legacy - * - * @dataProvider provideLegacyConstructorTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyConstructorTypes')] public function testExtractTypeConstructorLegacy(string $class, string $property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getType()" instead.'); @@ -563,9 +538,7 @@ public function testNullOnPrivateProtectedAccessor() $this->assertEquals(PropertyWriteInfo::TYPE_NONE, $bazMutator->getType()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testTypedPropertiesLegacy() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getType()" instead.'); @@ -701,11 +674,8 @@ public function testGetWriteInfoReadonlyProperties() $this->assertSame(PropertyWriteInfo::TYPE_NONE, $writeMutatorWithoutConstructor->getType()); } - /** - * @group legacy - * - * @dataProvider provideLegacyExtractConstructorTypes - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyExtractConstructorTypes')] public function testExtractConstructorTypesLegacy(string $property, ?array $type = null) { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getTypesFromConstructor()" method is deprecated, use "Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor::getTypeFromConstructor()" instead.'); diff --git a/src/Symfony/Component/PropertyInfo/Tests/PropertyInfoCacheExtractorTest.php b/src/Symfony/Component/PropertyInfo/Tests/PropertyInfoCacheExtractorTest.php index fda169d3efc93..a67614cabf8b2 100644 --- a/src/Symfony/Component/PropertyInfo/Tests/PropertyInfoCacheExtractorTest.php +++ b/src/Symfony/Component/PropertyInfo/Tests/PropertyInfoCacheExtractorTest.php @@ -11,7 +11,8 @@ namespace Symfony\Component\PropertyInfo\Tests; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Cache\Adapter\ArrayAdapter; use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor; use Symfony\Component\PropertyInfo\PropertyInfoCacheExtractor; @@ -26,8 +27,6 @@ */ class PropertyInfoCacheExtractorTest extends AbstractPropertyInfoExtractorTest { - use ExpectUserDeprecationMessageTrait; - protected function setUp(): void { parent::setUp(); @@ -53,9 +52,7 @@ public function testGetType() parent::testGetType(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testGetTypes() { $this->expectUserDeprecationMessage('Since symfony/property-info 7.3: The "Symfony\Component\PropertyInfo\PropertyInfoCacheExtractor::getTypes()" method is deprecated, use "Symfony\Component\PropertyInfo\PropertyInfoCacheExtractor::getType()" instead.'); @@ -88,11 +85,8 @@ public function testIsInitializable() parent::testIsInitializable(); } - /** - * @group legacy - * - * @dataProvider provideNestedExtractorWithoutGetTypeImplementationData - */ + #[IgnoreDeprecations] + #[DataProvider('provideNestedExtractorWithoutGetTypeImplementationData')] public function testNestedExtractorWithoutGetTypeImplementation(string $property, ?Type $expectedType) { $propertyInfoCacheExtractor = new PropertyInfoCacheExtractor(new class implements PropertyInfoExtractorInterface { diff --git a/src/Symfony/Component/PropertyInfo/Tests/PropertyInfoExtractorTest.php b/src/Symfony/Component/PropertyInfo/Tests/PropertyInfoExtractorTest.php index 33e80626f7438..c311ecfcbdac6 100644 --- a/src/Symfony/Component/PropertyInfo/Tests/PropertyInfoExtractorTest.php +++ b/src/Symfony/Component/PropertyInfo/Tests/PropertyInfoExtractorTest.php @@ -11,6 +11,8 @@ namespace Symfony\Component\PropertyInfo\Tests; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor; use Symfony\Component\PropertyInfo\PropertyInfoExtractor; use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface; @@ -23,11 +25,8 @@ */ class PropertyInfoExtractorTest extends AbstractPropertyInfoExtractorTest { - /** - * @group legacy - * - * @dataProvider provideNestedExtractorWithoutGetTypeImplementationData - */ + #[IgnoreDeprecations] + #[DataProvider('provideNestedExtractorWithoutGetTypeImplementationData')] public function testNestedExtractorWithoutGetTypeImplementation(string $property, ?Type $expectedType) { $propertyInfoExtractor = new PropertyInfoExtractor([], [new class implements PropertyTypeExtractorInterface { diff --git a/src/Symfony/Component/PropertyInfo/Tests/TypeTest.php b/src/Symfony/Component/PropertyInfo/Tests/TypeTest.php index afe4bb55f06ae..fd5bd913e2b1f 100644 --- a/src/Symfony/Component/PropertyInfo/Tests/TypeTest.php +++ b/src/Symfony/Component/PropertyInfo/Tests/TypeTest.php @@ -11,14 +11,14 @@ namespace Symfony\Component\PropertyInfo\Tests; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\PropertyInfo\Type; /** * @author Kévin Dunglas - * - * @group legacy */ +#[IgnoreDeprecations] class TypeTest extends TestCase { public function testConstruct() diff --git a/src/Symfony/Component/PropertyInfo/phpunit.xml.dist b/src/Symfony/Component/PropertyInfo/phpunit.xml.dist index 9ee482cf9b77e..72edfa1c37778 100644 --- a/src/Symfony/Component/PropertyInfo/phpunit.xml.dist +++ b/src/Symfony/Component/PropertyInfo/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/RateLimiter/phpunit.xml.dist b/src/Symfony/Component/RateLimiter/phpunit.xml.dist index d26339d188781..419fc5525cef1 100644 --- a/src/Symfony/Component/RateLimiter/phpunit.xml.dist +++ b/src/Symfony/Component/RateLimiter/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/RemoteEvent/phpunit.xml.dist b/src/Symfony/Component/RemoteEvent/phpunit.xml.dist index 80dd2bf19ffee..152a1c5245c97 100644 --- a/src/Symfony/Component/RemoteEvent/phpunit.xml.dist +++ b/src/Symfony/Component/RemoteEvent/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Routing/Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php b/src/Symfony/Component/Routing/Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php index 8edc49a66be1c..c461cad1db599 100644 --- a/src/Symfony/Component/Routing/Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php +++ b/src/Symfony/Component/Routing/Tests/Generator/Dumper/CompiledUrlGeneratorDumperTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\Routing\Tests\Generator\Dumper; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Routing\Exception\RouteCircularReferenceException; use Symfony\Component\Routing\Exception\RouteNotFoundException; use Symfony\Component\Routing\Generator\CompiledUrlGenerator; @@ -24,8 +24,6 @@ class CompiledUrlGeneratorDumperTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private RouteCollection $routeCollection; private CompiledUrlGeneratorDumper $generatorDumper; private string $testTmpFilepath; @@ -338,9 +336,7 @@ public function testIndirectCircularReferenceShouldThrowAnException() $this->generatorDumper->dump(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testDeprecatedAlias() { $this->expectUserDeprecationMessage('Since foo/bar 1.0.0: The "b" route alias is deprecated. You should stop using it, as it will be removed in the future.'); @@ -356,9 +352,7 @@ public function testDeprecatedAlias() $compiledUrlGenerator->generate('b'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testDeprecatedAliasWithCustomMessage() { $this->expectUserDeprecationMessage('Since foo/bar 1.0.0: foo b.'); @@ -374,9 +368,7 @@ public function testDeprecatedAliasWithCustomMessage() $compiledUrlGenerator->generate('b'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testTargettingADeprecatedAliasShouldTriggerDeprecation() { $this->expectUserDeprecationMessage('Since foo/bar 1.0.0: foo b.'); diff --git a/src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php b/src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php index 25a4c67460c82..232322cdd8df2 100644 --- a/src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php +++ b/src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php @@ -11,9 +11,9 @@ namespace Symfony\Component\Routing\Tests\Generator; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Psr\Log\LoggerInterface; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Routing\Exception\InvalidParameterException; use Symfony\Component\Routing\Exception\MissingMandatoryParametersException; use Symfony\Component\Routing\Exception\RouteCircularReferenceException; @@ -26,8 +26,6 @@ class UrlGeneratorTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testAbsoluteUrlWithPort80() { $routes = $this->getRoutes('test', new Route('/testing')); @@ -806,9 +804,7 @@ public function testAliasWhichTargetRouteDoesntExist() $this->getGenerator($routes)->generate('d'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testDeprecatedAlias() { $this->expectUserDeprecationMessage('Since foo/bar 1.0.0: The "b" route alias is deprecated. You should stop using it, as it will be removed in the future.'); @@ -821,9 +817,7 @@ public function testDeprecatedAlias() $this->getGenerator($routes)->generate('b'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testDeprecatedAliasWithCustomMessage() { $this->expectUserDeprecationMessage('Since foo/bar 1.0.0: foo b.'); @@ -836,9 +830,7 @@ public function testDeprecatedAliasWithCustomMessage() $this->getGenerator($routes)->generate('b'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testTargettingADeprecatedAliasShouldTriggerDeprecation() { $this->expectUserDeprecationMessage('Since foo/bar 1.0.0: foo b.'); diff --git a/src/Symfony/Component/Routing/phpunit.xml.dist b/src/Symfony/Component/Routing/phpunit.xml.dist index 587ee4c001c47..6d89fd81bc692 100644 --- a/src/Symfony/Component/Routing/phpunit.xml.dist +++ b/src/Symfony/Component/Routing/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Runtime/phpunit.xml.dist b/src/Symfony/Component/Runtime/phpunit.xml.dist index fc2aa6e67073c..a1c76a7e1b720 100644 --- a/src/Symfony/Component/Runtime/phpunit.xml.dist +++ b/src/Symfony/Component/Runtime/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Scheduler/phpunit.xml.dist b/src/Symfony/Component/Scheduler/phpunit.xml.dist index 5a9b7c647b600..3e52a6ea16663 100644 --- a/src/Symfony/Component/Scheduler/phpunit.xml.dist +++ b/src/Symfony/Component/Scheduler/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php index 3972b1cde073b..d4d1833cc0e21 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Token; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Security\Core\Authentication\Token\AbstractToken; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\User\InMemoryUser; @@ -20,8 +20,6 @@ class AbstractTokenTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - /** * @dataProvider provideUsers */ @@ -37,9 +35,7 @@ public static function provideUsers() yield [new InMemoryUser('fabien', null), 'fabien']; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testEraseCredentials() { $token = new ConcreteToken(['ROLE_FOO']); diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/RememberMeTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/RememberMeTokenTest.php index b0cdbaf18c657..1a06aa2420a4f 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/Token/RememberMeTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/RememberMeTokenTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Core\Tests\Authentication\Token; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken; use Symfony\Component\Security\Core\User\UserInterface; @@ -27,9 +28,7 @@ public function testConstructor() $this->assertSame($user, $token->getUser()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testSecret() { $user = $this->getUser(); diff --git a/src/Symfony/Component/Security/Core/Tests/User/InMemoryUserTest.php b/src/Symfony/Component/Security/Core/Tests/User/InMemoryUserTest.php index f06e98c32c80f..3b6165e022d6e 100644 --- a/src/Symfony/Component/Security/Core/Tests/User/InMemoryUserTest.php +++ b/src/Symfony/Component/Security/Core/Tests/User/InMemoryUserTest.php @@ -11,15 +11,13 @@ namespace Symfony\Component\Security\Core\Tests\User; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Security\Core\User\InMemoryUser; use Symfony\Component\Security\Core\User\UserInterface; class InMemoryUserTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testConstructorException() { $this->expectException(\InvalidArgumentException::class); @@ -56,13 +54,11 @@ public function testIsEnabled() $this->assertFalse($user->isEnabled()); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testEraseCredentials() { $user = new InMemoryUser('fabien', 'superpass'); - $this->expectUserDeprecationMessage(\sprintf('%sMethod %s::eraseCredentials() is deprecated since symfony/security-core 7.3', \PHP_VERSION_ID >= 80400 ? 'Unsilenced deprecation: ' : '', InMemoryUser::class)); + $this->expectUserDeprecationMessage(\sprintf('Method %s::eraseCredentials() is deprecated since symfony/security-core 7.3', InMemoryUser::class)); $user->eraseCredentials(); $this->assertEquals('superpass', $user->getPassword()); } diff --git a/src/Symfony/Component/Security/Core/phpunit.xml.dist b/src/Symfony/Component/Security/Core/phpunit.xml.dist index 223091f3fabd9..ae6997a0e56a8 100644 --- a/src/Symfony/Component/Security/Core/phpunit.xml.dist +++ b/src/Symfony/Component/Security/Core/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Security/Csrf/phpunit.xml.dist b/src/Symfony/Component/Security/Csrf/phpunit.xml.dist index 012cb736ea123..8bdd13d2f71e5 100644 --- a/src/Symfony/Component/Security/Csrf/phpunit.xml.dist +++ b/src/Symfony/Component/Security/Csrf/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerBCTest.php b/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerBCTest.php index 9775e5a15285a..a2690c084abb4 100644 --- a/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerBCTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerBCTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Http\Tests\Authentication; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Psr\Log\AbstractLogger; use Psr\Log\LoggerInterface; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -40,8 +41,6 @@ class AuthenticatorManagerBCTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private MockObject&TokenStorageInterface $tokenStorage; private EventDispatcher $eventDispatcher; private Request $request; @@ -60,11 +59,8 @@ protected function setUp(): void $this->response = $this->createMock(Response::class); } - /** - * @dataProvider provideSupportsData - * - * @group legacy - */ + #[IgnoreDeprecations] + #[DataProvider('provideSupportsData')] public function testSupports($authenticators, $result) { $manager = $this->createManager($authenticators, hideUserNotFoundExceptions: true); @@ -84,9 +80,7 @@ public static function provideSupportsData() yield [[], false]; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testSupportsInvalidAuthenticator() { $manager = $this->createManager([new \stdClass()], hideUserNotFoundExceptions: true); @@ -98,9 +92,7 @@ public function testSupportsInvalidAuthenticator() $manager->supports($this->request); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testSupportCheckedUponRequestAuthentication() { // the attribute stores the supported authenticators, returning false now @@ -115,11 +107,8 @@ public function testSupportCheckedUponRequestAuthentication() $manager->authenticateRequest($this->request); } - /** - * @dataProvider provideMatchingAuthenticatorIndex - * - * @group legacy - */ + #[IgnoreDeprecations] + #[DataProvider('provideMatchingAuthenticatorIndex')] public function testAuthenticateRequest($matchingAuthenticatorIndex) { $authenticators = [$this->createAuthenticator(0 === $matchingAuthenticatorIndex), $this->createAuthenticator(1 === $matchingAuthenticatorIndex)]; @@ -151,9 +140,7 @@ public static function provideMatchingAuthenticatorIndex() yield [1]; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testNoCredentialsValidated() { $authenticator = $this->createAuthenticator(); @@ -169,9 +156,7 @@ public function testNoCredentialsValidated() $manager->authenticateRequest($this->request); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testRequiredBadgeMissing() { $authenticator = $this->createAuthenticator(); @@ -185,9 +170,7 @@ public function testRequiredBadgeMissing() $manager->authenticateRequest($this->request); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testAllRequiredBadgesPresent() { $authenticator = $this->createAuthenticator(); @@ -204,11 +187,8 @@ public function testAllRequiredBadgesPresent() $manager->authenticateRequest($this->request); } - /** - * @dataProvider provideEraseCredentialsData - * - * @group legacy - */ + #[IgnoreDeprecations] + #[DataProvider('provideEraseCredentialsData')] public function testEraseCredentials($eraseCredentials) { $authenticator = $this->createAuthenticator(); @@ -230,9 +210,7 @@ public static function provideEraseCredentialsData() yield [false]; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testAuthenticateRequestCanModifyTokenFromEvent() { $authenticator = $this->createAuthenticator(); @@ -257,9 +235,7 @@ public function testAuthenticateRequestCanModifyTokenFromEvent() $this->assertTrue($listenerCalled, 'The AuthenticationTokenCreatedEvent listener is not called'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testAuthenticateUser() { $authenticator = $this->createAuthenticator(); @@ -283,9 +259,7 @@ public function testAuthenticateUser() $manager->authenticateUser($this->user, $authenticator, $this->request, [$badge], ['attr' => 'foo', 'attr2' => 'bar']); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testAuthenticateUserCanModifyTokenFromEvent() { $authenticator = $this->createAuthenticator(); @@ -307,9 +281,7 @@ public function testAuthenticateUserCanModifyTokenFromEvent() $this->assertTrue($listenerCalled, 'The AuthenticationTokenCreatedEvent listener is not called'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInteractiveAuthenticator() { $authenticator = $this->createMock(TestInteractiveBCAuthenticator::class); @@ -331,9 +303,7 @@ public function testInteractiveAuthenticator() $this->assertSame($this->response, $response); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLegacyInteractiveAuthenticator() { $authenticator = $this->createMock(InteractiveAuthenticatorInterface::class); @@ -355,9 +325,7 @@ public function testLegacyInteractiveAuthenticator() $this->assertSame($this->response, $response); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testAuthenticateRequestHidesInvalidUserExceptions() { $invalidUserException = new UserNotFoundException(); @@ -376,9 +344,7 @@ public function testAuthenticateRequestHidesInvalidUserExceptions() $this->assertSame($this->response, $response); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testAuthenticateRequestShowsAccountStatusException() { $invalidUserException = new LockedException(); @@ -397,9 +363,7 @@ public function testAuthenticateRequestShowsAccountStatusException() $this->assertSame($this->response, $response); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testAuthenticateRequestHidesInvalidAccountStatusException() { $invalidUserException = new LockedException(); @@ -418,9 +382,7 @@ public function testAuthenticateRequestHidesInvalidAccountStatusException() $this->assertSame($this->response, $response); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLogsUseTheDecoratedAuthenticatorWhenItIsTraceable() { $authenticator = $this->createMock(TestInteractiveBCAuthenticator::class); diff --git a/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php b/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php index 67f7247f14990..a953ce5d97e3d 100644 --- a/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php @@ -11,11 +11,12 @@ namespace Symfony\Component\Security\Http\Tests\Authentication; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Psr\Log\AbstractLogger; use Psr\Log\LoggerInterface; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -42,8 +43,6 @@ class AuthenticatorManagerTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private MockObject&TokenStorageInterface $tokenStorage; private EventDispatcher $eventDispatcher; private Request $request; @@ -187,11 +186,8 @@ public function testAllRequiredBadgesPresent() $manager->authenticateRequest($this->request); } - /** - * @group legacy - * - * @dataProvider provideEraseCredentialsData - */ + #[IgnoreDeprecations] + #[DataProvider('provideEraseCredentialsData')] public function testEraseCredentials($eraseCredentials) { $authenticator = $this->createAuthenticator(); diff --git a/src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge/UserBadgeTest.php b/src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge/UserBadgeTest.php index f648d0483174f..039225da40aae 100644 --- a/src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge/UserBadgeTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge/UserBadgeTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\Security\Http\Tests\Authenticator\Passport\Badge; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Security\Core\Exception\UserNotFoundException; use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge; use Symfony\Component\String\Slugger\AsciiSlugger; @@ -22,8 +22,6 @@ class UserBadgeTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testUserNotFound() { $badge = new UserBadge('dummy', fn () => null); @@ -31,9 +29,7 @@ public function testUserNotFound() $badge->getUser(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testEmptyUserIdentifier() { $this->expectUserDeprecationMessage('Since symfony/security-http 7.2: Using an empty string as user identifier is deprecated and will throw an exception in Symfony 8.0.'); diff --git a/src/Symfony/Component/Security/Http/phpunit.xml.dist b/src/Symfony/Component/Security/Http/phpunit.xml.dist index 96733956a3b1f..b073d7abbe30d 100644 --- a/src/Symfony/Component/Security/Http/phpunit.xml.dist +++ b/src/Symfony/Component/Security/Http/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Semaphore/phpunit.xml.dist b/src/Symfony/Component/Semaphore/phpunit.xml.dist index 53c6007ef61e1..33e150810b856 100644 --- a/src/Symfony/Component/Semaphore/phpunit.xml.dist +++ b/src/Symfony/Component/Semaphore/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -19,7 +20,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Serializer/Tests/CacheWarmer/CompiledClassMetadataCacheWarmerTest.php b/src/Symfony/Component/Serializer/Tests/CacheWarmer/CompiledClassMetadataCacheWarmerTest.php index c9f5081b680b0..8a47f91c9e4ac 100644 --- a/src/Symfony/Component/Serializer/Tests/CacheWarmer/CompiledClassMetadataCacheWarmerTest.php +++ b/src/Symfony/Component/Serializer/Tests/CacheWarmer/CompiledClassMetadataCacheWarmerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Serializer\Tests\CacheWarmer; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface; @@ -18,9 +19,7 @@ use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryCompiler; use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface; -/** - * @group legacy - */ +#[IgnoreDeprecations] final class CompiledClassMetadataCacheWarmerTest extends TestCase { public function testItImplementsCacheWarmerInterface() diff --git a/src/Symfony/Component/Serializer/Tests/Context/Encoder/CsvEncoderContextBuilderTest.php b/src/Symfony/Component/Serializer/Tests/Context/Encoder/CsvEncoderContextBuilderTest.php index fe39feb8197ce..8b8b70c387f92 100644 --- a/src/Symfony/Component/Serializer/Tests/Context/Encoder/CsvEncoderContextBuilderTest.php +++ b/src/Symfony/Component/Serializer/Tests/Context/Encoder/CsvEncoderContextBuilderTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\Serializer\Tests\Context\Encoder; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Serializer\Context\Encoder\CsvEncoderContextBuilder; use Symfony\Component\Serializer\Encoder\CsvEncoder; use Symfony\Component\Serializer\Exception\InvalidArgumentException; @@ -22,8 +22,6 @@ */ class CsvEncoderContextBuilderTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private CsvEncoderContextBuilder $contextBuilder; protected function setUp(): void @@ -122,9 +120,7 @@ public function testCannotSetMultipleBytesAsEnclosure() $this->contextBuilder->withEnclosure('ọ'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testCannotSetMultipleBytesAsEscapeChar() { $this->expectUserDeprecationMessage('Since symfony/serializer 7.2: The "Symfony\Component\Serializer\Context\Encoder\CsvEncoderContextBuilder::withEscapeChar" method is deprecated. It will be removed in 8.0.'); @@ -133,9 +129,7 @@ public function testCannotSetMultipleBytesAsEscapeChar() $this->contextBuilder->withEscapeChar('ọ'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testWithEscapeCharIsDeprecated() { $this->expectUserDeprecationMessage('Since symfony/serializer 7.2: The "Symfony\Component\Serializer\Context\Encoder\CsvEncoderContextBuilder::withEscapeChar" method is deprecated. It will be removed in 8.0.'); diff --git a/src/Symfony/Component/Serializer/Tests/Encoder/CsvEncoderTest.php b/src/Symfony/Component/Serializer/Tests/Encoder/CsvEncoderTest.php index 34cc940a7d0b3..9bc979f178aba 100644 --- a/src/Symfony/Component/Serializer/Tests/Encoder/CsvEncoderTest.php +++ b/src/Symfony/Component/Serializer/Tests/Encoder/CsvEncoderTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\Serializer\Tests\Encoder; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Serializer\Encoder\CsvEncoder; use Symfony\Component\Serializer\Exception\UnexpectedValueException; @@ -21,8 +21,6 @@ */ class CsvEncoderTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private CsvEncoder $encoder; protected function setUp(): void @@ -732,9 +730,7 @@ public static function provideIterable() yield 'generator' => [(fn (): \Generator => yield from $data)()]; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testPassingNonEmptyEscapeCharIsDeprecated() { $this->expectUserDeprecationMessage('Since symfony/serializer 7.2: Setting the "csv_escape_char" option is deprecated. The option will be removed in 8.0.'); diff --git a/src/Symfony/Component/Serializer/Tests/Mapping/Factory/CompiledClassMetadataFactoryTest.php b/src/Symfony/Component/Serializer/Tests/Mapping/Factory/CompiledClassMetadataFactoryTest.php index e77a8bf3ee63f..e95a720f5c478 100644 --- a/src/Symfony/Component/Serializer/Tests/Mapping/Factory/CompiledClassMetadataFactoryTest.php +++ b/src/Symfony/Component/Serializer/Tests/Mapping/Factory/CompiledClassMetadataFactoryTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Serializer\Tests\Mapping\Factory; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Mapping\AttributeMetadata; use Symfony\Component\Serializer\Mapping\ClassMetadata; @@ -21,9 +22,8 @@ /** * @author Fabien Bourigault - * - * @group legacy */ +#[IgnoreDeprecations] final class CompiledClassMetadataFactoryTest extends TestCase { public function testItImplementsClassMetadataFactoryInterface() diff --git a/src/Symfony/Component/Serializer/phpunit.xml.dist b/src/Symfony/Component/Serializer/phpunit.xml.dist index fd66cdfcc351c..173cf616b6979 100644 --- a/src/Symfony/Component/Serializer/phpunit.xml.dist +++ b/src/Symfony/Component/Serializer/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Stopwatch/phpunit.xml.dist b/src/Symfony/Component/Stopwatch/phpunit.xml.dist index 355a660033b60..d2b18e7f54808 100644 --- a/src/Symfony/Component/Stopwatch/phpunit.xml.dist +++ b/src/Symfony/Component/Stopwatch/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/String/phpunit.xml.dist b/src/Symfony/Component/String/phpunit.xml.dist index 32741bdb243da..092194286a9e0 100644 --- a/src/Symfony/Component/String/phpunit.xml.dist +++ b/src/Symfony/Component/String/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Translation/Bridge/Crowdin/phpunit.xml.dist b/src/Symfony/Component/Translation/Bridge/Crowdin/phpunit.xml.dist index 1db54ec4d7b44..268c6facfa1cf 100644 --- a/src/Symfony/Component/Translation/Bridge/Crowdin/phpunit.xml.dist +++ b/src/Symfony/Component/Translation/Bridge/Crowdin/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Translation/Bridge/Loco/.gitignore b/src/Symfony/Component/Translation/Bridge/Loco/.gitignore index 76367ee5bbc59..4cc689e5ff9b5 100644 --- a/src/Symfony/Component/Translation/Bridge/Loco/.gitignore +++ b/src/Symfony/Component/Translation/Bridge/Loco/.gitignore @@ -1,4 +1,5 @@ vendor/ composer.lock phpunit.xml +.phpunit.cache .phpunit.result.cache diff --git a/src/Symfony/Component/Translation/Bridge/Loco/phpunit.xml.dist b/src/Symfony/Component/Translation/Bridge/Loco/phpunit.xml.dist index 5122f8e4b923c..9f50640ae2a50 100644 --- a/src/Symfony/Component/Translation/Bridge/Loco/phpunit.xml.dist +++ b/src/Symfony/Component/Translation/Bridge/Loco/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Translation/Bridge/Lokalise/phpunit.xml.dist b/src/Symfony/Component/Translation/Bridge/Lokalise/phpunit.xml.dist index 367077240dbdc..fbf8c75b33540 100644 --- a/src/Symfony/Component/Translation/Bridge/Lokalise/phpunit.xml.dist +++ b/src/Symfony/Component/Translation/Bridge/Lokalise/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Translation/Bridge/Phrase/.gitignore b/src/Symfony/Component/Translation/Bridge/Phrase/.gitignore index d769eb51de25d..94f9fc3163a5d 100644 --- a/src/Symfony/Component/Translation/Bridge/Phrase/.gitignore +++ b/src/Symfony/Component/Translation/Bridge/Phrase/.gitignore @@ -1,3 +1,4 @@ vendor +.phpunit.cache .phpunit.result.cache composer.lock diff --git a/src/Symfony/Component/Translation/Bridge/Phrase/phpunit.xml.dist b/src/Symfony/Component/Translation/Bridge/Phrase/phpunit.xml.dist index 3923cac64a102..a206de8ba148f 100644 --- a/src/Symfony/Component/Translation/Bridge/Phrase/phpunit.xml.dist +++ b/src/Symfony/Component/Translation/Bridge/Phrase/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -23,7 +24,7 @@ - + ./ @@ -31,5 +32,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php index cae80911cce1c..4a6799d8cebb3 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\Translation\Tests\Loader; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Config\Resource\FileResource; use Symfony\Component\Translation\Exception\InvalidResourceException; use Symfony\Component\Translation\Exception\NotFoundResourceException; @@ -20,8 +20,6 @@ class CsvFileLoaderTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testLoad() { $loader = new CsvFileLoader(); @@ -58,9 +56,7 @@ public function testLoadNonLocalResource() (new CsvFileLoader())->load('http://example.com/resources.csv', 'en', 'domain1'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testEscapeCharInCsvControlIsDeprecated() { $loader = new CsvFileLoader(); diff --git a/src/Symfony/Component/Translation/composer.json b/src/Symfony/Component/Translation/composer.json index ce9a7bf48c61b..3b74580e5eeb7 100644 --- a/src/Symfony/Component/Translation/composer.json +++ b/src/Symfony/Component/Translation/composer.json @@ -18,7 +18,7 @@ "require": { "php": ">=8.2", "symfony/polyfill-mbstring": "~1.0", - "symfony/translation-contracts": "^2.5|^3.0", + "symfony/translation-contracts": "^2.5.3|^3.3", "symfony/deprecation-contracts": "^2.5|^3" }, "require-dev": { diff --git a/src/Symfony/Component/Translation/phpunit.xml.dist b/src/Symfony/Component/Translation/phpunit.xml.dist index a3045329e2ef2..91a6867a87902 100644 --- a/src/Symfony/Component/Translation/phpunit.xml.dist +++ b/src/Symfony/Component/Translation/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/TypeInfo/Tests/Type/CollectionTypeTest.php b/src/Symfony/Component/TypeInfo/Tests/Type/CollectionTypeTest.php index 2b8d6031efdcc..d05d2ff49a7b0 100644 --- a/src/Symfony/Component/TypeInfo/Tests/Type/CollectionTypeTest.php +++ b/src/Symfony/Component/TypeInfo/Tests/Type/CollectionTypeTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\TypeInfo\Tests\Type; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\TypeInfo\Exception\InvalidArgumentException; use Symfony\Component\TypeInfo\Type; use Symfony\Component\TypeInfo\Type\CollectionType; @@ -21,8 +21,6 @@ class CollectionTypeTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testCannotCreateInvalidBuiltinType() { $this->expectException(InvalidArgumentException::class); @@ -126,9 +124,7 @@ public function testAccepts() $this->assertFalse($type->accepts(new \ArrayObject([0 => true, 1 => 'string']))); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testCannotCreateIterableList() { $this->expectUserDeprecationMessage('Since symfony/type-info 7.3: Creating a "Symfony\Component\TypeInfo\Type\CollectionType" that is a list and not an array is deprecated and will throw a "Symfony\Component\TypeInfo\Exception\InvalidArgumentException" in 8.0.'); diff --git a/src/Symfony/Component/TypeInfo/Tests/TypeFactoryTest.php b/src/Symfony/Component/TypeInfo/Tests/TypeFactoryTest.php index 6a9aaf4cfe25b..c0413dc116ec6 100644 --- a/src/Symfony/Component/TypeInfo/Tests/TypeFactoryTest.php +++ b/src/Symfony/Component/TypeInfo/Tests/TypeFactoryTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\TypeInfo\Tests; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\TypeInfo\Tests\Fixtures\DummyBackedEnum; use Symfony\Component\TypeInfo\Tests\Fixtures\DummyEnum; use Symfony\Component\TypeInfo\Type; @@ -31,8 +31,6 @@ class TypeFactoryTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testCreateBuiltin() { $this->assertEquals(new BuiltinType(TypeIdentifier::INT), Type::builtin(TypeIdentifier::INT)); @@ -285,9 +283,7 @@ public function offsetUnset(mixed $offset): void yield [Type::collection(Type::object($arrayAccess::class)), $arrayAccess]; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testCannotCreateIterableList() { $this->expectUserDeprecationMessage('Since symfony/type-info 7.3: The third argument of "Symfony\Component\TypeInfo\TypeFactoryTrait::iterable()" is deprecated. Use the "Symfony\Component\TypeInfo\Type::list()" method to create a list instead.'); diff --git a/src/Symfony/Component/TypeInfo/phpunit.xml.dist b/src/Symfony/Component/TypeInfo/phpunit.xml.dist index 11b4d18ad464c..59d02e7be47f2 100644 --- a/src/Symfony/Component/TypeInfo/phpunit.xml.dist +++ b/src/Symfony/Component/TypeInfo/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Uid/phpunit.xml.dist b/src/Symfony/Component/Uid/phpunit.xml.dist index ae2399d0897cc..d3868f11d59aa 100644 --- a/src/Symfony/Component/Uid/phpunit.xml.dist +++ b/src/Symfony/Component/Uid/phpunit.xml.dist @@ -1,7 +1,7 @@ - + ./ @@ -26,15 +26,11 @@ ./Tests/ ./vendor/ - + - - - - - Symfony\Component\Uid - - - - + + + + + diff --git a/src/Symfony/Component/Validator/Tests/Constraints/ChoiceValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/ChoiceValidatorTest.php index 39affe4421a03..b8ba3e7bd91a3 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/ChoiceValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/ChoiceValidatorTest.php @@ -11,6 +11,8 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraints\Choice; use Symfony\Component\Validator\Constraints\ChoiceValidator; use Symfony\Component\Validator\Exception\ConstraintDefinitionException; @@ -90,11 +92,8 @@ public static function provideConstraintsWithChoicesArray(): iterable yield 'named arguments' => [new Choice(choices: ['foo', 'bar'])]; } - /** - * @group legacy - * - * @dataProvider provideLegacyConstraintsWithChoicesArrayDoctrineStyle - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyConstraintsWithChoicesArrayDoctrineStyle')] public function testValidChoiceArrayDoctrineStyle(Choice $constraint) { $this->validator->validate('bar', $constraint); @@ -125,11 +124,8 @@ public static function provideConstraintsWithCallbackFunction(): iterable yield 'named arguments, static method' => [new Choice(callback: [__CLASS__, 'staticCallback'])]; } - /** - * @group legacy - * - * @dataProvider provideLegacyConstraintsWithCallbackFunctionDoctrineStyle - */ + #[IgnoreDeprecations] + #[DataProvider('provideLegacyConstraintsWithCallbackFunctionDoctrineStyle')] public function testValidChoiceCallbackFunctionDoctrineStyle(Choice $constraint) { $this->validator->validate('bar', $constraint); @@ -193,9 +189,7 @@ public function testMultipleChoices() $this->assertNoViolation(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testMultipleChoicesDoctrineStyle() { $this->validator->validate(['baz', 'bar'], new Choice([ @@ -217,9 +211,7 @@ public function testInvalidChoice() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidChoiceDoctrineStyle() { $this->validator->validate('baz', new Choice(['choices' => ['foo', 'bar'], 'message' => 'myMessage'])); @@ -265,9 +257,7 @@ public function testInvalidChoiceMultiple() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidChoiceMultipleDoctrineStyle() { $this->validator->validate(['foo', 'baz'], new Choice([ @@ -305,9 +295,7 @@ public function testTooFewChoices() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testTooFewChoicesDoctrineStyle() { $value = ['foo']; @@ -350,9 +338,7 @@ public function testTooManyChoices() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testTooManyChoicesDoctrineStyle() { $value = ['foo', 'bar', 'moo']; diff --git a/src/Symfony/Component/Validator/Tests/Constraints/CollectionTest.php b/src/Symfony/Component/Validator/Tests/Constraints/CollectionTest.php index 4299edb2640cd..347e41faa083e 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/CollectionTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/CollectionTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Collection; use Symfony\Component\Validator\Constraints\Email; @@ -25,9 +26,7 @@ */ class CollectionTest extends TestCase { - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testRejectNonConstraints() { $this->expectException(InvalidOptionsException::class); @@ -102,9 +101,7 @@ public function testConstraintHasDefaultGroupWithOptionalValues() $this->assertEquals(['Default'], $constraint->fields['bar']->groups); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testOnlySomeKeysAreKnowOptions() { $constraint = new Collection([ diff --git a/src/Symfony/Component/Validator/Tests/Constraints/CompoundTest.php b/src/Symfony/Component/Validator/Tests/Constraints/CompoundTest.php index 9b515a48ccd08..11defe69a76ef 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/CompoundTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/CompoundTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Compound; use Symfony\Component\Validator\Constraints\Length; @@ -19,9 +20,7 @@ class CompoundTest extends TestCase { - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testItCannotRedefineConstraintsOption() { $this->expectException(ConstraintDefinitionException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/CountValidatorTestCase.php b/src/Symfony/Component/Validator/Tests/Constraints/CountValidatorTestCase.php index da319cd8b25ae..e3c881eccfd1d 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/CountValidatorTestCase.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/CountValidatorTestCase.php @@ -11,6 +11,8 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraints\Count; use Symfony\Component\Validator\Constraints\CountValidator; use Symfony\Component\Validator\Constraints\DivisibleBy; @@ -69,11 +71,8 @@ public static function getFiveOrMoreElements() ]; } - /** - * @group legacy - * - * @dataProvider getThreeOrLessElements - */ + #[IgnoreDeprecations] + #[DataProvider('getThreeOrLessElements')] public function testValidValuesMax($value) { $constraint = new Count(['max' => 3]); @@ -93,11 +92,8 @@ public function testValidValuesMaxNamed($value) $this->assertNoViolation(); } - /** - * @group legacy - * - * @dataProvider getFiveOrMoreElements - */ + #[IgnoreDeprecations] + #[DataProvider('getFiveOrMoreElements')] public function testValidValuesMin($value) { $constraint = new Count(['min' => 5]); @@ -117,11 +113,8 @@ public function testValidValuesMinNamed($value) $this->assertNoViolation(); } - /** - * @group legacy - * - * @dataProvider getFourElements - */ + #[IgnoreDeprecations] + #[DataProvider('getFourElements')] public function testValidValuesExact($value) { $constraint = new Count(4); @@ -141,11 +134,8 @@ public function testValidValuesExactNamed($value) $this->assertNoViolation(); } - /** - * @group legacy - * - * @dataProvider getFiveOrMoreElements - */ + #[IgnoreDeprecations] + #[DataProvider('getFiveOrMoreElements')] public function testTooManyValues($value) { $constraint = new Count([ @@ -182,11 +172,8 @@ public function testTooManyValuesNamed($value) ->assertRaised(); } - /** - * @group legacy - * - * @dataProvider getThreeOrLessElements - */ + #[IgnoreDeprecations] + #[DataProvider('getThreeOrLessElements')] public function testTooFewValues($value) { $constraint = new Count([ @@ -223,11 +210,8 @@ public function testTooFewValuesNamed($value) ->assertRaised(); } - /** - * @group legacy - * - * @dataProvider getFiveOrMoreElements - */ + #[IgnoreDeprecations] + #[DataProvider('getFiveOrMoreElements')] public function testTooManyValuesExact($value) { $constraint = new Count([ diff --git a/src/Symfony/Component/Validator/Tests/Constraints/DisableAutoMappingTest.php b/src/Symfony/Component/Validator/Tests/Constraints/DisableAutoMappingTest.php index e7b6a8db7f981..ea6b4b84cf3f7 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/DisableAutoMappingTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/DisableAutoMappingTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\DisableAutoMapping; use Symfony\Component\Validator\Exception\ConstraintDefinitionException; @@ -23,9 +24,7 @@ */ class DisableAutoMappingTest extends TestCase { - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testGroups() { $this->expectException(ConstraintDefinitionException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/EmailTest.php b/src/Symfony/Component/Validator/Tests/Constraints/EmailTest.php index 9436b4bd6607c..499b5834e7261 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/EmailTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/EmailTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Email; use Symfony\Component\Validator\Exception\InvalidArgumentException; @@ -54,9 +55,7 @@ public function testNormalizerCanBeSet() $this->assertEquals('trim', $email->normalizer); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerThrowsException() { $this->expectException(InvalidArgumentException::class); @@ -64,9 +63,7 @@ public function testInvalidNormalizerThrowsException() new Email(['normalizer' => 'Unknown Callable']); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerObjectThrowsException() { $this->expectException(InvalidArgumentException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/EnableAutoMappingTest.php b/src/Symfony/Component/Validator/Tests/Constraints/EnableAutoMappingTest.php index 525a62ed5cf5b..f745d130cc0c0 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/EnableAutoMappingTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/EnableAutoMappingTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\EnableAutoMapping; use Symfony\Component\Validator\Exception\ConstraintDefinitionException; @@ -23,9 +24,7 @@ */ class EnableAutoMappingTest extends TestCase { - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testGroups() { $this->expectException(ConstraintDefinitionException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/ExpressionSyntaxTest.php b/src/Symfony/Component/Validator/Tests/Constraints/ExpressionSyntaxTest.php index 8731a5d850ec7..e8165312c7953 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/ExpressionSyntaxTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/ExpressionSyntaxTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\ExpressionSyntax; use Symfony\Component\Validator\Constraints\ExpressionSyntaxValidator; @@ -44,9 +45,7 @@ public static function provideServiceValidatedConstraints(): iterable yield 'attribute' => [$metadata->properties['b']->constraints[0]]; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testValidatedByServiceDoctrineStyle() { $constraint = new ExpressionSyntax(['service' => 'my_service']); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTestCase.php b/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTestCase.php index b1ebf530e196e..06071ed722c74 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTestCase.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTestCase.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\Validator\Constraints\File; use Symfony\Component\Validator\Constraints\FileValidator; @@ -375,9 +376,7 @@ public function testInvalidMimeType() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidMimeTypeDoctrineStyle() { $file = $this @@ -451,9 +450,7 @@ public function testDisallowEmpty() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testDisallowEmptyDoctrineStyle() { ftruncate($this->file, 0); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/GreaterThanOrEqualValidatorWithPositiveOrZeroConstraintTest.php b/src/Symfony/Component/Validator/Tests/Constraints/GreaterThanOrEqualValidatorWithPositiveOrZeroConstraintTest.php index 47f190851d0cd..83ffc4b5bbfed 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/GreaterThanOrEqualValidatorWithPositiveOrZeroConstraintTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/GreaterThanOrEqualValidatorWithPositiveOrZeroConstraintTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Constraints\GreaterThanOrEqualValidator; use Symfony\Component\Validator\Constraints\PositiveOrZero; @@ -61,9 +62,7 @@ public static function provideInvalidComparisons(): array ]; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintExceptionIfPropertyPath() { $this->expectException(ConstraintDefinitionException::class); @@ -72,9 +71,7 @@ public function testThrowsConstraintExceptionIfPropertyPath() return new PositiveOrZero(['propertyPath' => 'field']); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintExceptionIfValue() { $this->expectException(ConstraintDefinitionException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/GreaterThanValidatorWithPositiveConstraintTest.php b/src/Symfony/Component/Validator/Tests/Constraints/GreaterThanValidatorWithPositiveConstraintTest.php index 6b58bff856b2c..6abc185081195 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/GreaterThanValidatorWithPositiveConstraintTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/GreaterThanValidatorWithPositiveConstraintTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Constraints\GreaterThanValidator; use Symfony\Component\Validator\Constraints\Positive; @@ -58,9 +59,7 @@ public static function provideInvalidComparisons(): array ]; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintExceptionIfPropertyPath() { $this->expectException(ConstraintDefinitionException::class); @@ -69,9 +68,7 @@ public function testThrowsConstraintExceptionIfPropertyPath() return new Positive(['propertyPath' => 'field']); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintExceptionIfValue() { $this->expectException(ConstraintDefinitionException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/ImageValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/ImageValidatorTest.php index a79bd9dd4900a..ea0f9cf076de4 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/ImageValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/ImageValidatorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraints\Image; use Symfony\Component\Validator\Constraints\ImageValidator; use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; @@ -85,9 +86,8 @@ public function testFileNotFound() /** * Checks that the logic from FileValidator still works. - * - * @group legacy */ + #[IgnoreDeprecations] public function testFileNotFoundDoctrineStyle() { $this->validator->validate('foobar', new Image([ @@ -125,9 +125,7 @@ public function testWidthTooSmall() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testWidthTooSmallDoctrineStyle() { $this->validator->validate($this->image, new Image([ @@ -153,9 +151,7 @@ public function testWidthTooBig() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testWidthTooBigDoctrineStyle() { $this->validator->validate($this->image, new Image([ @@ -181,9 +177,7 @@ public function testHeightTooSmall() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testHeightTooSmallDoctrineStyle() { $this->validator->validate($this->image, new Image([ @@ -209,9 +203,7 @@ public function testHeightTooBig() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testHeightTooBigDoctrineStyle() { $this->validator->validate($this->image, new Image([ @@ -239,9 +231,7 @@ public function testPixelsTooFew() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testPixelsTooFewDoctrineStyle() { $this->validator->validate($this->image, new Image([ @@ -271,9 +261,7 @@ public function testPixelsTooMany() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testPixelsTooManyDoctrineStyle() { $this->validator->validate($this->image, new Image([ @@ -301,9 +289,7 @@ public function testRatioTooSmall() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testRatioTooSmallDoctrineStyle() { $this->validator->validate($this->image, new Image([ @@ -329,9 +315,7 @@ public function testRatioTooBig() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testRatioTooBigDoctrineStyle() { $this->validator->validate($this->image, new Image([ @@ -384,9 +368,7 @@ public function testSquareNotAllowed() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testSquareNotAllowedDoctrineStyle() { $this->validator->validate($this->image, new Image([ @@ -412,9 +394,7 @@ public function testLandscapeNotAllowed() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLandscapeNotAllowedDoctrineStyle() { $this->validator->validate($this->imageLandscape, new Image([ @@ -440,9 +420,7 @@ public function testPortraitNotAllowed() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testPortraitNotAllowedDoctrineStyle() { $this->validator->validate($this->imagePortrait, new Image([ @@ -476,9 +454,7 @@ public function testCorrupted() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testCorruptedDoctrineStyle() { if (!\function_exists('imagecreatefromstring')) { @@ -532,9 +508,7 @@ public function testInvalidMimeTypeWithNarrowedSet() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidMimeTypeWithNarrowedSetDoctrineStyle() { $this->validator->validate($this->image, new Image([ diff --git a/src/Symfony/Component/Validator/Tests/Constraints/IpTest.php b/src/Symfony/Component/Validator/Tests/Constraints/IpTest.php index 2d740ae88a03a..256393417b6b6 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/IpTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/IpTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Ip; use Symfony\Component\Validator\Exception\InvalidArgumentException; @@ -29,9 +30,7 @@ public function testNormalizerCanBeSet() $this->assertEquals('trim', $ip->normalizer); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerThrowsException() { $this->expectException(InvalidArgumentException::class); @@ -39,9 +38,7 @@ public function testInvalidNormalizerThrowsException() new Ip(['normalizer' => 'Unknown Callable']); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerObjectThrowsException() { $this->expectException(InvalidArgumentException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/IsFalseValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/IsFalseValidatorTest.php index c6e2ccef6e8c3..25b4e49ed8c95 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/IsFalseValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/IsFalseValidatorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraints\IsFalse; use Symfony\Component\Validator\Constraints\IsFalseValidator; use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; @@ -46,9 +47,7 @@ public function testTrueIsInvalid() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testTrueIsInvalidDoctrineStyle() { $constraint = new IsFalse([ diff --git a/src/Symfony/Component/Validator/Tests/Constraints/IsTrueValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/IsTrueValidatorTest.php index 4a9eb7702b385..59d86d8393a14 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/IsTrueValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/IsTrueValidatorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraints\IsTrue; use Symfony\Component\Validator\Constraints\IsTrueValidator; use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; @@ -46,9 +47,7 @@ public function testFalseIsInvalid() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testFalseIsInvalidDoctrineStyle() { $this->validator->validate(false, new IsTrue([ diff --git a/src/Symfony/Component/Validator/Tests/Constraints/IsbnValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/IsbnValidatorTest.php index f9393158d5d39..41b195e56ba7b 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/IsbnValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/IsbnValidatorTest.php @@ -11,6 +11,8 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraints\Isbn; use Symfony\Component\Validator\Constraints\IsbnValidator; use Symfony\Component\Validator\Exception\UnexpectedValueException; @@ -157,11 +159,8 @@ public function testValidIsbn10($isbn) $this->assertNoViolation(); } - /** - * @group legacy - * - * @dataProvider getInvalidIsbn10 - */ + #[IgnoreDeprecations] + #[DataProvider('getInvalidIsbn10')] public function testInvalidIsbn10($isbn, $code) { $constraint = new Isbn([ @@ -202,11 +201,8 @@ public function testValidIsbn13($isbn) $this->assertNoViolation(); } - /** - * @group legacy - * - * @dataProvider getInvalidIsbn13 - */ + #[IgnoreDeprecations] + #[DataProvider('getInvalidIsbn13')] public function testInvalidIsbn13($isbn, $code) { $constraint = new Isbn([ diff --git a/src/Symfony/Component/Validator/Tests/Constraints/LengthTest.php b/src/Symfony/Component/Validator/Tests/Constraints/LengthTest.php index 6e292cb351ffd..6ce17fb73e18f 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/LengthTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/LengthTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Length; use Symfony\Component\Validator\Exception\InvalidArgumentException; @@ -33,9 +34,7 @@ public function testNormalizerCanBeSet() $this->assertEquals('trim', $length->normalizer); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerThrowsException() { $this->expectException(InvalidArgumentException::class); @@ -43,9 +42,7 @@ public function testInvalidNormalizerThrowsException() new Length(['min' => 0, 'max' => 10, 'normalizer' => 'Unknown Callable']); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerObjectThrowsException() { $this->expectException(InvalidArgumentException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/LessThanOrEqualValidatorWithNegativeOrZeroConstraintTest.php b/src/Symfony/Component/Validator/Tests/Constraints/LessThanOrEqualValidatorWithNegativeOrZeroConstraintTest.php index 685bb58a63b3f..131a8583869c9 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/LessThanOrEqualValidatorWithNegativeOrZeroConstraintTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/LessThanOrEqualValidatorWithNegativeOrZeroConstraintTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Constraints\LessThanOrEqualValidator; use Symfony\Component\Validator\Constraints\NegativeOrZero; @@ -59,9 +60,7 @@ public static function provideInvalidComparisons(): array ]; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintExceptionIfPropertyPath() { $this->expectException(ConstraintDefinitionException::class); @@ -70,9 +69,7 @@ public function testThrowsConstraintExceptionIfPropertyPath() return new NegativeOrZero(['propertyPath' => 'field']); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintExceptionIfValue() { $this->expectException(ConstraintDefinitionException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/LessThanValidatorWithNegativeConstraintTest.php b/src/Symfony/Component/Validator/Tests/Constraints/LessThanValidatorWithNegativeConstraintTest.php index 5174a951d19b6..a28811a30a67d 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/LessThanValidatorWithNegativeConstraintTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/LessThanValidatorWithNegativeConstraintTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Constraints\LessThanValidator; use Symfony\Component\Validator\Constraints\Negative; @@ -58,9 +59,7 @@ public static function provideInvalidComparisons(): array ]; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintExceptionIfPropertyPath() { $this->expectException(ConstraintDefinitionException::class); @@ -69,9 +68,7 @@ public function testThrowsConstraintExceptionIfPropertyPath() return new Negative(['propertyPath' => 'field']); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintExceptionIfValue() { $this->expectException(ConstraintDefinitionException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/NotBlankTest.php b/src/Symfony/Component/Validator/Tests/Constraints/NotBlankTest.php index d04a65f1cbe82..a65eac4be741a 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/NotBlankTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/NotBlankTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\NotBlank; use Symfony\Component\Validator\Exception\InvalidArgumentException; @@ -45,9 +46,7 @@ public function testAttributes() self::assertSame('myMessage', $bConstraint->message); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerThrowsException() { $this->expectException(InvalidArgumentException::class); @@ -55,9 +54,7 @@ public function testInvalidNormalizerThrowsException() new NotBlank(['normalizer' => 'Unknown Callable']); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerObjectThrowsException() { $this->expectException(InvalidArgumentException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/NotCompromisedPasswordValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/NotCompromisedPasswordValidatorTest.php index 11c325d53a7ef..574a20a0d6ee6 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/NotCompromisedPasswordValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/NotCompromisedPasswordValidatorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraints\Luhn; use Symfony\Component\Validator\Constraints\NotCompromisedPassword; use Symfony\Component\Validator\Constraints\NotCompromisedPasswordValidator; @@ -102,9 +103,7 @@ public function testThresholdNotReached() $this->assertNoViolation(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThresholdNotReachedDoctrineStyle() { $this->validator->validate(self::PASSWORD_LEAKED, new NotCompromisedPassword(['threshold' => 10])); @@ -216,9 +215,7 @@ public function testApiErrorSkipped() $this->validator->validate(self::PASSWORD_TRIGGERING_AN_ERROR, new NotCompromisedPassword(skipOnError: true)); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testApiErrorSkippedDoctrineStyle() { $this->expectNotToPerformAssertions(); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/NotNullValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/NotNullValidatorTest.php index fec2ec12a362b..000ccb0b1b256 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/NotNullValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/NotNullValidatorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraints\NotNull; use Symfony\Component\Validator\Constraints\NotNullValidator; use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; @@ -52,9 +53,7 @@ public function testNullIsInvalid() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testNullIsInvalidDoctrineStyle() { $this->validator->validate(null, new NotNull([ diff --git a/src/Symfony/Component/Validator/Tests/Constraints/RangeTest.php b/src/Symfony/Component/Validator/Tests/Constraints/RangeTest.php index 01481e8bca5da..0fd4055954ab3 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/RangeTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/RangeTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Range; use Symfony\Component\Validator\Exception\ConstraintDefinitionException; @@ -18,9 +19,7 @@ class RangeTest extends TestCase { - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintExceptionIfBothMinLimitAndPropertyPath() { $this->expectException(ConstraintDefinitionException::class); @@ -38,9 +37,7 @@ public function testThrowsConstraintExceptionIfBothMinLimitAndPropertyPathNamed( new Range(min: 'min', minPropertyPath: 'minPropertyPath'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintExceptionIfBothMaxLimitAndPropertyPath() { $this->expectException(ConstraintDefinitionException::class); @@ -92,9 +89,7 @@ public function testThrowsConstraintDefinitionExceptionIfBothMinAndMaxAndMaxMess new Range(min: 'min', max: 'max', maxMessage: 'maxMessage'); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintDefinitionExceptionIfBothMinAndMaxAndMinMessageAndMaxMessageOptions() { $this->expectException(ConstraintDefinitionException::class); @@ -107,9 +102,7 @@ public function testThrowsConstraintDefinitionExceptionIfBothMinAndMaxAndMinMess ]); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintDefinitionExceptionIfBothMinAndMaxAndMinMessageOptions() { $this->expectException(ConstraintDefinitionException::class); @@ -121,9 +114,7 @@ public function testThrowsConstraintDefinitionExceptionIfBothMinAndMaxAndMinMess ]); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testThrowsConstraintDefinitionExceptionIfBothMinAndMaxAndMaxMessageOptions() { $this->expectException(ConstraintDefinitionException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php index 423c8d4608c98..f90d6abf3016b 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php @@ -11,6 +11,8 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Intl\Util\IntlTestHelper; use Symfony\Component\Validator\Constraints\Range; use Symfony\Component\Validator\Constraints\RangeValidator; @@ -69,11 +71,8 @@ public static function getMoreThanTwenty(): array ]; } - /** - * @group legacy - * - * @dataProvider getTenToTwenty - */ + #[IgnoreDeprecations] + #[DataProvider('getTenToTwenty')] public function testValidValuesMin($value) { $constraint = new Range(['min' => 10]); @@ -93,11 +92,8 @@ public function testValidValuesMinNamed($value) $this->assertNoViolation(); } - /** - * @group legacy - * - * @dataProvider getTenToTwenty - */ + #[IgnoreDeprecations] + #[DataProvider('getTenToTwenty')] public function testValidValuesMax($value) { $constraint = new Range(['max' => 20]); @@ -117,11 +113,8 @@ public function testValidValuesMaxNamed($value) $this->assertNoViolation(); } - /** - * @group legacy - * - * @dataProvider getTenToTwenty - */ + #[IgnoreDeprecations] + #[DataProvider('getTenToTwenty')] public function testValidValuesMinMax($value) { $constraint = new Range(['min' => 10, 'max' => 20]); @@ -141,11 +134,8 @@ public function testValidValuesMinMaxNamed($value) $this->assertNoViolation(); } - /** - * @group legacy - * - * @dataProvider getLessThanTen - */ + #[IgnoreDeprecations] + #[DataProvider('getLessThanTen')] public function testInvalidValuesMin($value, $formattedValue) { $constraint = new Range([ @@ -178,11 +168,8 @@ public function testInvalidValuesMinNamed($value, $formattedValue) ->assertRaised(); } - /** - * @group legacy - * - * @dataProvider getMoreThanTwenty - */ + #[IgnoreDeprecations] + #[DataProvider('getMoreThanTwenty')] public function testInvalidValuesMax($value, $formattedValue) { $constraint = new Range([ @@ -215,11 +202,8 @@ public function testInvalidValuesMaxNamed($value, $formattedValue) ->assertRaised(); } - /** - * @group legacy - * - * @dataProvider getMoreThanTwenty - */ + #[IgnoreDeprecations] + #[DataProvider('getMoreThanTwenty')] public function testInvalidValuesCombinedMax($value, $formattedValue) { $constraint = new Range([ @@ -255,11 +239,8 @@ public function testInvalidValuesCombinedMaxNamed($value, $formattedValue) ->assertRaised(); } - /** - * @group legacy - * - * @dataProvider getLessThanTen - */ + #[IgnoreDeprecations] + #[DataProvider('getLessThanTen')] public function testInvalidValuesCombinedMin($value, $formattedValue) { $constraint = new Range([ @@ -634,11 +615,8 @@ public function testNoViolationOnNullObjectWithPropertyPaths() $this->assertNoViolation(); } - /** - * @group legacy - * - * @dataProvider getTenToTwenty - */ + #[IgnoreDeprecations] + #[DataProvider('getTenToTwenty')] public function testValidValuesMinPropertyPath($value) { $this->setObject(new Limit(10)); @@ -747,11 +725,8 @@ public function testInvalidValuesMaxPropertyPath($value, $formattedValue) ->assertRaised(); } - /** - * @group legacy - * - * @dataProvider getMoreThanTwenty - */ + #[IgnoreDeprecations] + #[DataProvider('getMoreThanTwenty')] public function testInvalidValuesCombinedMaxPropertyPath($value, $formattedValue) { $this->setObject(new MinMax(10, 20)); @@ -799,11 +774,8 @@ public function testInvalidValuesCombinedMaxPropertyPathNamed($value, $formatted ->assertRaised(); } - /** - * @group legacy - * - * @dataProvider getLessThanTen - */ + #[IgnoreDeprecations] + #[DataProvider('getLessThanTen')] public function testInvalidValuesCombinedMinPropertyPath($value, $formattedValue) { $this->setObject(new MinMax(10, 20)); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/RegexTest.php b/src/Symfony/Component/Validator/Tests/Constraints/RegexTest.php index 96b5d5fc4386d..5bee0b2680fcf 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/RegexTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/RegexTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Regex; use Symfony\Component\Validator\Exception\InvalidArgumentException; @@ -96,9 +97,7 @@ public function testNormalizerCanBeSet() $this->assertEquals('trim', $regex->normalizer); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerThrowsException() { $this->expectException(InvalidArgumentException::class); @@ -106,9 +105,7 @@ public function testInvalidNormalizerThrowsException() new Regex(['pattern' => '/^[0-9]+$/', 'normalizer' => 'Unknown Callable']); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerObjectThrowsException() { $this->expectException(InvalidArgumentException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/RegexValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/RegexValidatorTest.php index bafc752c36d21..8e781e561c666 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/RegexValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/RegexValidatorTest.php @@ -11,6 +11,8 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraints\Regex; use Symfony\Component\Validator\Constraints\RegexValidator; use Symfony\Component\Validator\Exception\UnexpectedValueException; @@ -54,11 +56,8 @@ public function testValidValues($value) $this->assertNoViolation(); } - /** - * @group legacy - * - * @dataProvider getValidValuesWithWhitespaces - */ + #[IgnoreDeprecations] + #[DataProvider('getValidValuesWithWhitespaces')] public function testValidValuesWithWhitespaces($value) { $constraint = new Regex(['pattern' => '/^[0-9]+$/', 'normalizer' => 'trim']); @@ -106,11 +105,8 @@ public static function getValidValuesWithWhitespaces() ]; } - /** - * @group legacy - * - * @dataProvider getInvalidValues - */ + #[IgnoreDeprecations] + #[DataProvider('getInvalidValues')] public function testInvalidValues($value) { $constraint = new Regex([ diff --git a/src/Symfony/Component/Validator/Tests/Constraints/TypeValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/TypeValidatorTest.php index 8e9e1aa3bc9e2..6402a953fe8ce 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/TypeValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/TypeValidatorTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use Symfony\Component\Validator\Constraints\Type; use Symfony\Component\Validator\Constraints\TypeValidator; use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; @@ -221,9 +222,7 @@ public function testInvalidValuesMultipleTypes() ->assertRaised(); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidValuesMultipleTypesDoctrineStyle() { $this->validator->validate('12345', new Type([ diff --git a/src/Symfony/Component/Validator/Tests/Constraints/UniqueTest.php b/src/Symfony/Component/Validator/Tests/Constraints/UniqueTest.php index 9fe2599fd0e99..9e2dc5c21728c 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/UniqueTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/UniqueTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Unique; use Symfony\Component\Validator\Exception\InvalidArgumentException; @@ -37,9 +38,7 @@ public function testAttributes() self::assertSame('intval', $dConstraint->normalizer); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerThrowsException() { $this->expectException(InvalidArgumentException::class); @@ -47,9 +46,7 @@ public function testInvalidNormalizerThrowsException() new Unique(['normalizer' => 'Unknown Callable']); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerObjectThrowsException() { $this->expectException(InvalidArgumentException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/UrlTest.php b/src/Symfony/Component/Validator/Tests/Constraints/UrlTest.php index cbc9bc18c6611..23800cba677dd 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/UrlTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/UrlTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Url; use Symfony\Component\Validator\Exception\InvalidArgumentException; @@ -29,9 +30,7 @@ public function testNormalizerCanBeSet() $this->assertEquals('trim', $url->normalizer); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerThrowsException() { $this->expectException(InvalidArgumentException::class); @@ -39,9 +38,7 @@ public function testInvalidNormalizerThrowsException() new Url(['normalizer' => 'Unknown Callable', 'requireTld' => true]); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerObjectThrowsException() { $this->expectException(InvalidArgumentException::class); @@ -80,9 +77,7 @@ public function testAttributes() self::assertTrue($dConstraint->requireTld); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testRequireTldDefaultsToFalse() { $constraint = new Url(); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/UuidTest.php b/src/Symfony/Component/Validator/Tests/Constraints/UuidTest.php index 22901a9db3027..262a9d8568ee6 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/UuidTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/UuidTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Uuid; use Symfony\Component\Validator\Exception\InvalidArgumentException; @@ -29,9 +30,7 @@ public function testNormalizerCanBeSet() $this->assertEquals('trim', $uuid->normalizer); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerThrowsException() { $this->expectException(InvalidArgumentException::class); @@ -39,9 +38,7 @@ public function testInvalidNormalizerThrowsException() new Uuid(['normalizer' => 'Unknown Callable']); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testInvalidNormalizerObjectThrowsException() { $this->expectException(InvalidArgumentException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/WhenTest.php b/src/Symfony/Component/Validator/Tests/Constraints/WhenTest.php index 8f04376b337a2..f8e25cdfcccfd 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/WhenTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/WhenTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Validator\Tests\Constraints; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Validator\Constraints\Callback; use Symfony\Component\Validator\Constraints\Length; @@ -26,9 +27,7 @@ final class WhenTest extends TestCase { - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testMissingOptionsExceptionIsThrown() { $this->expectException(MissingOptionsException::class); diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php index 08a4bb862cbf1..5c7955658dbba 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\Validator\Tests\Mapping\Loader; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Validator\Constraints\All; use Symfony\Component\Validator\Constraints\Callback; use Symfony\Component\Validator\Constraints\Choice; @@ -39,8 +39,6 @@ class XmlFileLoaderTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testLoadClassMetadataReturnsTrueIfSuccessful() { $loader = new XmlFileLoader(__DIR__.'/constraint-mapping.xml'); @@ -176,9 +174,7 @@ public function testDoNotModifyStateIfExceptionIsThrown() } } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLoadConstraintWithoutNamedArgumentsSupport() { $loader = new XmlFileLoader(__DIR__.'/constraint-without-named-arguments-support.xml'); diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Loader/YamlFileLoaderTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Loader/YamlFileLoaderTest.php index c3bbcb18e1683..aa5a91afe4cb6 100644 --- a/src/Symfony/Component/Validator/Tests/Mapping/Loader/YamlFileLoaderTest.php +++ b/src/Symfony/Component/Validator/Tests/Mapping/Loader/YamlFileLoaderTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\Validator\Tests\Mapping\Loader; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Validator\Constraints\All; use Symfony\Component\Validator\Constraints\Callback; use Symfony\Component\Validator\Constraints\Choice; @@ -36,8 +36,6 @@ class YamlFileLoaderTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - public function testLoadClassMetadataReturnsFalseIfEmpty() { $loader = new YamlFileLoader(__DIR__.'/empty-mapping.yml'); @@ -192,9 +190,7 @@ public function testLoadGroupProvider() $this->assertEquals($expected, $metadata); } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testLoadConstraintWithoutNamedArgumentsSupport() { $loader = new YamlFileLoader(__DIR__.'/constraint-without-named-arguments-support.yml'); diff --git a/src/Symfony/Component/Validator/phpunit.xml.dist b/src/Symfony/Component/Validator/phpunit.xml.dist index 8288431b6a355..cdd1c74a908cb 100644 --- a/src/Symfony/Component/Validator/phpunit.xml.dist +++ b/src/Symfony/Component/Validator/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/VarDumper/Tests/Caster/DoctrineCasterTest.php b/src/Symfony/Component/VarDumper/Tests/Caster/DoctrineCasterTest.php index 06b65ff1165c9..a1d7d5f2c5ce6 100644 --- a/src/Symfony/Component/VarDumper/Tests/Caster/DoctrineCasterTest.php +++ b/src/Symfony/Component/VarDumper/Tests/Caster/DoctrineCasterTest.php @@ -40,7 +40,7 @@ public function testCastPersistentCollection() %A -backRefFieldName: null -isDirty: false - -em: $entityManagerClass { …3} + -em: $entityManagerClass { …%d} -typeClass: Doctrine\ORM\Mapping\ClassMetadata { …} %A EODUMP; @@ -49,7 +49,7 @@ public function testCastPersistentCollection() $expected = << @@ -21,7 +22,7 @@ - + ./ @@ -30,5 +31,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/VarExporter/Tests/LegacyLazyGhostTraitTest.php b/src/Symfony/Component/VarExporter/Tests/LegacyLazyGhostTraitTest.php index e86fb841b70eb..ee26b9b34b913 100644 --- a/src/Symfony/Component/VarExporter/Tests/LegacyLazyGhostTraitTest.php +++ b/src/Symfony/Component/VarExporter/Tests/LegacyLazyGhostTraitTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\VarExporter\Tests; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory; use Symfony\Component\Serializer\Mapping\Loader\AttributeLoader; @@ -29,9 +30,7 @@ use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\HookedWithDefaultValue; use Symfony\Component\VarExporter\Tests\Fixtures\SimpleObject; -/** - * @group legacy - */ +#[IgnoreDeprecations] class LegacyLazyGhostTraitTest extends TestCase { public function testGetPublic() diff --git a/src/Symfony/Component/VarExporter/Tests/LegacyLazyProxyTraitTest.php b/src/Symfony/Component/VarExporter/Tests/LegacyLazyProxyTraitTest.php index 383b08fe82e22..8cf4d049bd3a3 100644 --- a/src/Symfony/Component/VarExporter/Tests/LegacyLazyProxyTraitTest.php +++ b/src/Symfony/Component/VarExporter/Tests/LegacyLazyProxyTraitTest.php @@ -11,16 +11,15 @@ namespace Symfony\Component\VarExporter\Tests; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; +use PHPUnit\Framework\Attributes\RequiresPhp; use Symfony\Component\VarExporter\LazyProxyTrait; use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\FinalPublicClass; use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\TestClass; use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\TestOverwritePropClass; -/** - * @requires PHP < 8.4 - * - * @group legacy - */ +#[IgnoreDeprecations] +#[RequiresPhp('<8.4')] class LegacyLazyProxyTraitTest extends LazyProxyTraitTest { public function testLazyDecoratorClass() diff --git a/src/Symfony/Component/VarExporter/Tests/LegacyProxyHelperTest.php b/src/Symfony/Component/VarExporter/Tests/LegacyProxyHelperTest.php index 71c46c448ac1d..84f0b1af6ace6 100644 --- a/src/Symfony/Component/VarExporter/Tests/LegacyProxyHelperTest.php +++ b/src/Symfony/Component/VarExporter/Tests/LegacyProxyHelperTest.php @@ -11,16 +11,15 @@ namespace Symfony\Component\VarExporter\Tests; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; +use PHPUnit\Framework\Attributes\RequiresPhp; use Symfony\Component\VarExporter\Exception\LogicException; use Symfony\Component\VarExporter\ProxyHelper; use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\Php82NullStandaloneReturnType; use Symfony\Component\VarExporter\Tests\Fixtures\LazyProxy\StringMagicGetClass; -/** - * @requires PHP < 8.4 - * - * @group legacy - */ +#[IgnoreDeprecations] +#[RequiresPhp('<8.4')] class LegacyProxyHelperTest extends ProxyHelperTest { public function testGenerateLazyProxy() diff --git a/src/Symfony/Component/VarExporter/phpunit.xml.dist b/src/Symfony/Component/VarExporter/phpunit.xml.dist index 52e3cb005fcbf..bb837da2c24f4 100644 --- a/src/Symfony/Component/VarExporter/phpunit.xml.dist +++ b/src/Symfony/Component/VarExporter/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -27,5 +28,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/WebLink/phpunit.xml.dist b/src/Symfony/Component/WebLink/phpunit.xml.dist index 660c6b2d95694..c533bb7cbfa70 100644 --- a/src/Symfony/Component/WebLink/phpunit.xml.dist +++ b/src/Symfony/Component/WebLink/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Webhook/phpunit.xml.dist b/src/Symfony/Component/Webhook/phpunit.xml.dist index ff3020250d20c..0cfad7da6125e 100644 --- a/src/Symfony/Component/Webhook/phpunit.xml.dist +++ b/src/Symfony/Component/Webhook/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Workflow/phpunit.xml.dist b/src/Symfony/Component/Workflow/phpunit.xml.dist index 15e5deb058413..f4d82677e0e93 100644 --- a/src/Symfony/Component/Workflow/phpunit.xml.dist +++ b/src/Symfony/Component/Workflow/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Component/Yaml/Tests/ParserTest.php b/src/Symfony/Component/Yaml/Tests/ParserTest.php index 836ec23ffa582..cbb26327441f8 100644 --- a/src/Symfony/Component/Yaml/Tests/ParserTest.php +++ b/src/Symfony/Component/Yaml/Tests/ParserTest.php @@ -11,8 +11,8 @@ namespace Symfony\Component\Yaml\Tests; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; -use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait; use Symfony\Component\Yaml\Exception\ParseException; use Symfony\Component\Yaml\Parser; use Symfony\Component\Yaml\Tag\TaggedValue; @@ -20,8 +20,6 @@ class ParserTest extends TestCase { - use ExpectUserDeprecationMessageTrait; - private ?Parser $parser; protected function setUp(): void @@ -1059,9 +1057,7 @@ public static function getParseExceptionOnDuplicateData() return $tests; } - /** - * @group legacy - */ + #[IgnoreDeprecations] public function testNullAsDuplicatedData() { $this->expectUserDeprecationMessage('Since symfony/yaml 7.2: Duplicate key "child" detected on line 4 whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated and will throw a ParseException in 8.0.'); diff --git a/src/Symfony/Component/Yaml/phpunit.xml.dist b/src/Symfony/Component/Yaml/phpunit.xml.dist index 3dc41d45ed45d..e1f4cbc888b2e 100644 --- a/src/Symfony/Component/Yaml/phpunit.xml.dist +++ b/src/Symfony/Component/Yaml/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,7 +19,7 @@ - + ./ @@ -26,5 +27,9 @@ ./Tests ./vendor - + + + + + diff --git a/src/Symfony/Contracts/Service/Test/ServiceLocatorTest.php b/src/Symfony/Contracts/Service/Test/ServiceLocatorTest.php index 07d12b4a5bdd3..015ca71e187b4 100644 --- a/src/Symfony/Contracts/Service/Test/ServiceLocatorTest.php +++ b/src/Symfony/Contracts/Service/Test/ServiceLocatorTest.php @@ -11,13 +11,9 @@ namespace Symfony\Contracts\Service\Test; -class_alias(ServiceLocatorTestCase::class, ServiceLocatorTest::class); - -if (false) { - /** - * @deprecated since PHPUnit 9.6 - */ - class ServiceLocatorTest - { - } +/** + * @deprecated since PHPUnit 9.6 + */ +class ServiceLocatorTest extends ServiceLocatorTestCase +{ } diff --git a/src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php b/src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php index bf0db2c1e158a..f9d3a569fcf87 100644 --- a/src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php +++ b/src/Symfony/Contracts/Tests/Service/ServiceSubscriberTraitTest.php @@ -11,6 +11,7 @@ namespace Symfony\Contracts\Tests\Service; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Psr\Container\ContainerInterface; use Symfony\Contracts\Service\Attribute\Required; @@ -19,9 +20,7 @@ use Symfony\Contracts\Service\ServiceSubscriberInterface; use Symfony\Contracts\Service\ServiceSubscriberTrait; -/** - * @group legacy - */ +#[IgnoreDeprecations] class ServiceSubscriberTraitTest extends TestCase { public static function setUpBeforeClass(): void diff --git a/src/Symfony/Contracts/phpunit.xml.dist b/src/Symfony/Contracts/phpunit.xml.dist index 947db86d20ad9..8a2d5481ed3cf 100644 --- a/src/Symfony/Contracts/phpunit.xml.dist +++ b/src/Symfony/Contracts/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -20,7 +21,7 @@ - + ./ @@ -30,6 +31,9 @@ ./Translation/Test/ ./vendor - + + + + From ad279879251479a3953878b9f4eaf3400e656727 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 24 Apr 2025 21:52:06 +0200 Subject: [PATCH 2/3] test the sigchld enabled job --- .github/workflows/unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 828394fdd1543..3b85b1836d3f1 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -237,7 +237,7 @@ jobs: run: | mkdir build cd build - wget -q https://github.com/symfony/binary-utils/releases/download/v0.1/php-8.2.0-pcntl-sigchild.tar.bz2 + wget -q https://github.com/xabbuh/binary-utils/releases/download/test/php-8.2.0-pcntl-sigchild.tar.bz2 tar -xjf php-8.2.0-pcntl-sigchild.tar.bz2 cd .. From 8a20f9f91767fcb8d4ce8445c5b4df4091819591 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 13 May 2025 09:51:25 +0200 Subject: [PATCH 3/3] replace failOnDeprecation XML config attribute with CLI option --- .github/workflows/unit-tests.yml | 2 +- phpunit.xml.dist | 1 - src/Symfony/Bridge/Doctrine/phpunit.xml.dist | 1 - src/Symfony/Bridge/Monolog/phpunit.xml.dist | 1 - src/Symfony/Bridge/PhpUnit/phpunit.xml.dist | 1 - src/Symfony/Bridge/PsrHttpMessage/phpunit.xml.dist | 1 - src/Symfony/Bridge/Twig/phpunit.xml.dist | 1 - src/Symfony/Bundle/DebugBundle/phpunit.xml.dist | 1 - src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist | 1 - src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist | 1 - src/Symfony/Bundle/TwigBundle/phpunit.xml.dist | 1 - src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist | 1 - src/Symfony/Component/Asset/phpunit.xml.dist | 1 - src/Symfony/Component/AssetMapper/phpunit.xml.dist | 1 - src/Symfony/Component/BrowserKit/phpunit.xml.dist | 1 - src/Symfony/Component/Cache/phpunit.xml.dist | 1 - src/Symfony/Component/Clock/phpunit.xml.dist | 1 - src/Symfony/Component/Config/phpunit.xml.dist | 1 - src/Symfony/Component/Console/phpunit.xml.dist | 1 - src/Symfony/Component/CssSelector/phpunit.xml.dist | 1 - src/Symfony/Component/DependencyInjection/phpunit.xml.dist | 1 - src/Symfony/Component/DomCrawler/phpunit.xml.dist | 1 - src/Symfony/Component/Dotenv/phpunit.xml.dist | 1 - src/Symfony/Component/Emoji/phpunit.xml.dist | 1 - src/Symfony/Component/ErrorHandler/phpunit.xml.dist | 1 - src/Symfony/Component/EventDispatcher/phpunit.xml.dist | 1 - src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist | 1 - src/Symfony/Component/Filesystem/phpunit.xml.dist | 1 - src/Symfony/Component/Finder/phpunit.xml.dist | 1 - src/Symfony/Component/Form/phpunit.xml.dist | 1 - src/Symfony/Component/HtmlSanitizer/phpunit.xml.dist | 1 - src/Symfony/Component/HttpClient/phpunit.xml.dist | 1 - src/Symfony/Component/HttpFoundation/phpunit.xml.dist | 1 - src/Symfony/Component/HttpKernel/phpunit.xml.dist | 1 - src/Symfony/Component/Intl/phpunit.xml.dist | 1 - src/Symfony/Component/JsonPath/phpunit.xml.dist | 1 - src/Symfony/Component/JsonStreamer/phpunit.xml.dist | 1 - src/Symfony/Component/Ldap/phpunit.xml.dist | 1 - src/Symfony/Component/Lock/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/AhaSend/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Amazon/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Azure/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Brevo/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Google/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Infobip/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/MailPace/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Mailchimp/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/MailerSend/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Mailgun/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Mailjet/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Mailomat/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Mailtrap/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Postal/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Postmark/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Resend/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Scaleway/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Sendgrid/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/Bridge/Sweego/phpunit.xml.dist | 1 - src/Symfony/Component/Mailer/phpunit.xml.dist | 1 - .../Component/Messenger/Bridge/AmazonSqs/phpunit.xml.dist | 1 - src/Symfony/Component/Messenger/Bridge/Amqp/phpunit.xml.dist | 1 - .../Component/Messenger/Bridge/Beanstalkd/phpunit.xml.dist | 1 - .../Component/Messenger/Bridge/Doctrine/phpunit.xml.dist | 1 - src/Symfony/Component/Messenger/Bridge/Redis/phpunit.xml.dist | 1 - src/Symfony/Component/Messenger/phpunit.xml.dist | 1 - src/Symfony/Component/Mime/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/AllMySms/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/AmazonSns/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/Bandwidth/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Bluesky/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Brevo/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Chatwork/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/ClickSend/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/Clickatell/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/ContactEveryone/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Discord/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/Engagespot/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Esendex/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Expo/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/FakeChat/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/FakeSms/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Firebase/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/FortySixElks/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/FreeMobile/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/GatewayApi/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/GoIp/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/GoogleChat/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Infobip/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Iqsms/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Isendpro/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/JoliNotif/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/KazInfoTeh/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/LightSms/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/LineBot/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/LineNotify/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/LinkedIn/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Lox24/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Mailjet/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Mastodon/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Matrix/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/Mattermost/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Mercure/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/MessageBird/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/MessageMedia/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/MicrosoftTeams/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Mobyt/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Novu/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Ntfy/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Octopush/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/OneSignal/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/OrangeSms/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/OvhCloud/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/PagerDuty/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Plivo/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/Primotexto/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Pushover/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Pushy/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Redlink/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/RingCentral/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/RocketChat/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/Sendberry/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Sevenio/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/SimpleTextin/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Sinch/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Sipgate/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Slack/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Sms77/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/SmsBiuras/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/SmsFactor/phpunit.xml.dist | 1 - .../Component/Notifier/Bridge/SmsSluzba/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Smsapi/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Smsbox/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Smsc/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Smsense/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Smsmode/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/SpotHit/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Sweego/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Telegram/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Telnyx/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Termii/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/TurboSms/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Twilio/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Twitter/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Unifonic/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Vonage/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Yunpian/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Zendesk/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/Bridge/Zulip/phpunit.xml.dist | 1 - src/Symfony/Component/Notifier/phpunit.xml.dist | 1 - src/Symfony/Component/ObjectMapper/phpunit.xml.dist | 1 - src/Symfony/Component/OptionsResolver/phpunit.xml.dist | 1 - src/Symfony/Component/PasswordHasher/phpunit.xml.dist | 1 - src/Symfony/Component/Process/phpunit.xml.dist | 1 - src/Symfony/Component/PropertyAccess/phpunit.xml.dist | 1 - src/Symfony/Component/PropertyInfo/phpunit.xml.dist | 1 - src/Symfony/Component/RateLimiter/phpunit.xml.dist | 1 - src/Symfony/Component/RemoteEvent/phpunit.xml.dist | 1 - src/Symfony/Component/Routing/phpunit.xml.dist | 1 - src/Symfony/Component/Runtime/phpunit.xml.dist | 1 - src/Symfony/Component/Scheduler/phpunit.xml.dist | 1 - src/Symfony/Component/Security/Core/phpunit.xml.dist | 1 - src/Symfony/Component/Security/Csrf/phpunit.xml.dist | 1 - src/Symfony/Component/Security/Http/phpunit.xml.dist | 1 - src/Symfony/Component/Semaphore/phpunit.xml.dist | 1 - src/Symfony/Component/Serializer/phpunit.xml.dist | 1 - src/Symfony/Component/Stopwatch/phpunit.xml.dist | 1 - src/Symfony/Component/String/phpunit.xml.dist | 1 - .../Component/Translation/Bridge/Crowdin/phpunit.xml.dist | 1 - src/Symfony/Component/Translation/Bridge/Loco/phpunit.xml.dist | 1 - .../Component/Translation/Bridge/Lokalise/phpunit.xml.dist | 1 - .../Component/Translation/Bridge/Phrase/phpunit.xml.dist | 1 - src/Symfony/Component/Translation/phpunit.xml.dist | 1 - src/Symfony/Component/TypeInfo/phpunit.xml.dist | 1 - src/Symfony/Component/Validator/phpunit.xml.dist | 1 - src/Symfony/Component/VarDumper/phpunit.xml.dist | 1 - src/Symfony/Component/VarExporter/phpunit.xml.dist | 1 - src/Symfony/Component/WebLink/phpunit.xml.dist | 1 - src/Symfony/Component/Webhook/phpunit.xml.dist | 1 - src/Symfony/Component/Workflow/phpunit.xml.dist | 1 - src/Symfony/Component/Yaml/phpunit.xml.dist | 1 - src/Symfony/Contracts/phpunit.xml.dist | 1 - 181 files changed, 1 insertion(+), 181 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 3b85b1836d3f1..aaae4175cbe04 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -190,7 +190,7 @@ jobs: export -f _run_tests if [[ ! "${{ matrix.mode }}" = *-deps ]]; then - echo "$COMPONENTS" | xargs -n1 | parallel -j +3 "_run_tests {} '$PHPUNIT {}'" + echo "$COMPONENTS" | xargs -n1 | parallel -j +3 "_run_tests {} '$PHPUNIT --fail-on-deprecation {}'" exit 0 fi diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 72aee6a3002db..26414517c7879 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Bridge/Doctrine/phpunit.xml.dist b/src/Symfony/Bridge/Doctrine/phpunit.xml.dist index ea9e034bcfa90..452b4bae36191 100644 --- a/src/Symfony/Bridge/Doctrine/phpunit.xml.dist +++ b/src/Symfony/Bridge/Doctrine/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Bridge/Monolog/phpunit.xml.dist b/src/Symfony/Bridge/Monolog/phpunit.xml.dist index dadc04efb1146..76cd64ee43efa 100644 --- a/src/Symfony/Bridge/Monolog/phpunit.xml.dist +++ b/src/Symfony/Bridge/Monolog/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Bridge/PhpUnit/phpunit.xml.dist b/src/Symfony/Bridge/PhpUnit/phpunit.xml.dist index 7e310594fcad7..ef92ea468b1b5 100644 --- a/src/Symfony/Bridge/PhpUnit/phpunit.xml.dist +++ b/src/Symfony/Bridge/PhpUnit/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Bridge/PsrHttpMessage/phpunit.xml.dist b/src/Symfony/Bridge/PsrHttpMessage/phpunit.xml.dist index d3617f04980db..485922c095a5f 100644 --- a/src/Symfony/Bridge/PsrHttpMessage/phpunit.xml.dist +++ b/src/Symfony/Bridge/PsrHttpMessage/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Bridge/Twig/phpunit.xml.dist b/src/Symfony/Bridge/Twig/phpunit.xml.dist index 033362023a05c..8f56aab91f3f5 100644 --- a/src/Symfony/Bridge/Twig/phpunit.xml.dist +++ b/src/Symfony/Bridge/Twig/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Bundle/DebugBundle/phpunit.xml.dist b/src/Symfony/Bundle/DebugBundle/phpunit.xml.dist index c3e55004d8b66..2665b8acc0035 100644 --- a/src/Symfony/Bundle/DebugBundle/phpunit.xml.dist +++ b/src/Symfony/Bundle/DebugBundle/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist b/src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist index 90e1a751eec0a..d739b1b7fe389 100644 --- a/src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist +++ b/src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist b/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist index 98a9bc3e8f1a4..ed9004d15926d 100644 --- a/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist +++ b/src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Bundle/TwigBundle/phpunit.xml.dist b/src/Symfony/Bundle/TwigBundle/phpunit.xml.dist index 61155994f5452..26ecee7cc0e79 100644 --- a/src/Symfony/Bundle/TwigBundle/phpunit.xml.dist +++ b/src/Symfony/Bundle/TwigBundle/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist b/src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist index 98ea54f6a220c..ce9746e6845d2 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist +++ b/src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Asset/phpunit.xml.dist b/src/Symfony/Component/Asset/phpunit.xml.dist index 8fc293603d88d..635f2db062ac6 100644 --- a/src/Symfony/Component/Asset/phpunit.xml.dist +++ b/src/Symfony/Component/Asset/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/AssetMapper/phpunit.xml.dist b/src/Symfony/Component/AssetMapper/phpunit.xml.dist index c4a26b2f96840..c81948f1a597d 100644 --- a/src/Symfony/Component/AssetMapper/phpunit.xml.dist +++ b/src/Symfony/Component/AssetMapper/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/BrowserKit/phpunit.xml.dist b/src/Symfony/Component/BrowserKit/phpunit.xml.dist index 2272dfedbb385..84e11edd4912a 100644 --- a/src/Symfony/Component/BrowserKit/phpunit.xml.dist +++ b/src/Symfony/Component/BrowserKit/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Cache/phpunit.xml.dist b/src/Symfony/Component/Cache/phpunit.xml.dist index b3d6d8189974e..756337f65da8b 100644 --- a/src/Symfony/Component/Cache/phpunit.xml.dist +++ b/src/Symfony/Component/Cache/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Clock/phpunit.xml.dist b/src/Symfony/Component/Clock/phpunit.xml.dist index 48d6f1c941d86..a9d00e08fa07e 100644 --- a/src/Symfony/Component/Clock/phpunit.xml.dist +++ b/src/Symfony/Component/Clock/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Config/phpunit.xml.dist b/src/Symfony/Component/Config/phpunit.xml.dist index 1fc0b6db2b3aa..54a2f3c010529 100644 --- a/src/Symfony/Component/Config/phpunit.xml.dist +++ b/src/Symfony/Component/Config/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Console/phpunit.xml.dist b/src/Symfony/Component/Console/phpunit.xml.dist index 950f1c096e703..cb24d2c6fd9c1 100644 --- a/src/Symfony/Component/Console/phpunit.xml.dist +++ b/src/Symfony/Component/Console/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/CssSelector/phpunit.xml.dist b/src/Symfony/Component/CssSelector/phpunit.xml.dist index 75680db2171ad..fcf07bdf63fcf 100644 --- a/src/Symfony/Component/CssSelector/phpunit.xml.dist +++ b/src/Symfony/Component/CssSelector/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/DependencyInjection/phpunit.xml.dist b/src/Symfony/Component/DependencyInjection/phpunit.xml.dist index 9bd36f7def281..f28ad69b8e10e 100644 --- a/src/Symfony/Component/DependencyInjection/phpunit.xml.dist +++ b/src/Symfony/Component/DependencyInjection/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/DomCrawler/phpunit.xml.dist b/src/Symfony/Component/DomCrawler/phpunit.xml.dist index 12c3592741f35..76c3cced8c0cc 100644 --- a/src/Symfony/Component/DomCrawler/phpunit.xml.dist +++ b/src/Symfony/Component/DomCrawler/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Dotenv/phpunit.xml.dist b/src/Symfony/Component/Dotenv/phpunit.xml.dist index 0cbf61812c750..fbfd0f7f32bc6 100644 --- a/src/Symfony/Component/Dotenv/phpunit.xml.dist +++ b/src/Symfony/Component/Dotenv/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Emoji/phpunit.xml.dist b/src/Symfony/Component/Emoji/phpunit.xml.dist index ae3217c70388d..1b6a96819f71c 100644 --- a/src/Symfony/Component/Emoji/phpunit.xml.dist +++ b/src/Symfony/Component/Emoji/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/ErrorHandler/phpunit.xml.dist b/src/Symfony/Component/ErrorHandler/phpunit.xml.dist index a49ef4008b82f..94e3f1bbaa76e 100644 --- a/src/Symfony/Component/ErrorHandler/phpunit.xml.dist +++ b/src/Symfony/Component/ErrorHandler/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/EventDispatcher/phpunit.xml.dist b/src/Symfony/Component/EventDispatcher/phpunit.xml.dist index 79bed7ea4ccb2..586991b2d8fcb 100644 --- a/src/Symfony/Component/EventDispatcher/phpunit.xml.dist +++ b/src/Symfony/Component/EventDispatcher/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist b/src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist index bf5d7ef250941..d73cde2d6346d 100644 --- a/src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist +++ b/src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Filesystem/phpunit.xml.dist b/src/Symfony/Component/Filesystem/phpunit.xml.dist index de9ee58664338..779f72138ac18 100644 --- a/src/Symfony/Component/Filesystem/phpunit.xml.dist +++ b/src/Symfony/Component/Filesystem/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Finder/phpunit.xml.dist b/src/Symfony/Component/Finder/phpunit.xml.dist index 6ad494546aefe..dbb6b41389420 100644 --- a/src/Symfony/Component/Finder/phpunit.xml.dist +++ b/src/Symfony/Component/Finder/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Form/phpunit.xml.dist b/src/Symfony/Component/Form/phpunit.xml.dist index b4d5784151b06..7fc26c3e4c11c 100644 --- a/src/Symfony/Component/Form/phpunit.xml.dist +++ b/src/Symfony/Component/Form/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/HtmlSanitizer/phpunit.xml.dist b/src/Symfony/Component/HtmlSanitizer/phpunit.xml.dist index f75585fb2bab7..aa6013cc8c55e 100644 --- a/src/Symfony/Component/HtmlSanitizer/phpunit.xml.dist +++ b/src/Symfony/Component/HtmlSanitizer/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/HttpClient/phpunit.xml.dist b/src/Symfony/Component/HttpClient/phpunit.xml.dist index 3bb41d367d9e3..c2d07777c976f 100644 --- a/src/Symfony/Component/HttpClient/phpunit.xml.dist +++ b/src/Symfony/Component/HttpClient/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/HttpFoundation/phpunit.xml.dist b/src/Symfony/Component/HttpFoundation/phpunit.xml.dist index d41c4be860988..781f8217729de 100644 --- a/src/Symfony/Component/HttpFoundation/phpunit.xml.dist +++ b/src/Symfony/Component/HttpFoundation/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/HttpKernel/phpunit.xml.dist b/src/Symfony/Component/HttpKernel/phpunit.xml.dist index d23535a6da457..4a4e095787747 100644 --- a/src/Symfony/Component/HttpKernel/phpunit.xml.dist +++ b/src/Symfony/Component/HttpKernel/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Intl/phpunit.xml.dist b/src/Symfony/Component/Intl/phpunit.xml.dist index b4b25d0411786..f638dd8eef86c 100644 --- a/src/Symfony/Component/Intl/phpunit.xml.dist +++ b/src/Symfony/Component/Intl/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/JsonPath/phpunit.xml.dist b/src/Symfony/Component/JsonPath/phpunit.xml.dist index 7a1154d943e7f..b8d3205268022 100644 --- a/src/Symfony/Component/JsonPath/phpunit.xml.dist +++ b/src/Symfony/Component/JsonPath/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/JsonStreamer/phpunit.xml.dist b/src/Symfony/Component/JsonStreamer/phpunit.xml.dist index 39010cda754d2..e494f05c8c723 100644 --- a/src/Symfony/Component/JsonStreamer/phpunit.xml.dist +++ b/src/Symfony/Component/JsonStreamer/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Ldap/phpunit.xml.dist b/src/Symfony/Component/Ldap/phpunit.xml.dist index 73b79e1a95c2c..f4cf9f5329a9c 100644 --- a/src/Symfony/Component/Ldap/phpunit.xml.dist +++ b/src/Symfony/Component/Ldap/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Lock/phpunit.xml.dist b/src/Symfony/Component/Lock/phpunit.xml.dist index d9a5802b667f0..d8659d22bbb44 100644 --- a/src/Symfony/Component/Lock/phpunit.xml.dist +++ b/src/Symfony/Component/Lock/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/AhaSend/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/AhaSend/phpunit.xml.dist index 08644304b93c0..0eb886dcdd50b 100644 --- a/src/Symfony/Component/Mailer/Bridge/AhaSend/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/AhaSend/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Amazon/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Amazon/phpunit.xml.dist index e1430de0d355e..1d118ce02c5dd 100644 --- a/src/Symfony/Component/Mailer/Bridge/Amazon/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Amazon/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Azure/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Azure/phpunit.xml.dist index c04f6da17e89c..6aae2563f9ed0 100644 --- a/src/Symfony/Component/Mailer/Bridge/Azure/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Azure/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Brevo/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Brevo/phpunit.xml.dist index fe96aa7b9e2f3..47fde692268ef 100644 --- a/src/Symfony/Component/Mailer/Bridge/Brevo/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Brevo/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Google/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Google/phpunit.xml.dist index df013dbf4a2d7..adc350788fb26 100644 --- a/src/Symfony/Component/Mailer/Bridge/Google/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Google/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Infobip/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Infobip/phpunit.xml.dist index 216ea4a6c225f..f84f7c5fcf614 100644 --- a/src/Symfony/Component/Mailer/Bridge/Infobip/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Infobip/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/MailPace/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/MailPace/phpunit.xml.dist index b74ec3d9ad9bc..4bd2a5b7735e3 100644 --- a/src/Symfony/Component/Mailer/Bridge/MailPace/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/MailPace/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Mailchimp/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Mailchimp/phpunit.xml.dist index 2247eb7772c77..72902fb2ee8a9 100644 --- a/src/Symfony/Component/Mailer/Bridge/Mailchimp/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Mailchimp/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/MailerSend/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/MailerSend/phpunit.xml.dist index 0124e8dbf1f7e..0893c0c246c5e 100644 --- a/src/Symfony/Component/Mailer/Bridge/MailerSend/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/MailerSend/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Mailgun/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Mailgun/phpunit.xml.dist index fe3fa69fec650..b8447d83ac61d 100644 --- a/src/Symfony/Component/Mailer/Bridge/Mailgun/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Mailgun/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Mailjet/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Mailjet/phpunit.xml.dist index d656b02946089..5369c28055e02 100644 --- a/src/Symfony/Component/Mailer/Bridge/Mailjet/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Mailjet/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Mailomat/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Mailomat/phpunit.xml.dist index 3ecd74ae2d62c..58d20e34a45af 100644 --- a/src/Symfony/Component/Mailer/Bridge/Mailomat/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Mailomat/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Mailtrap/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Mailtrap/phpunit.xml.dist index e5a94a5a7c784..820f182c614c1 100644 --- a/src/Symfony/Component/Mailer/Bridge/Mailtrap/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Mailtrap/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Postal/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Postal/phpunit.xml.dist index 55fa20051da4a..7887c1b5ee498 100644 --- a/src/Symfony/Component/Mailer/Bridge/Postal/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Postal/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Postmark/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Postmark/phpunit.xml.dist index 26de7cce4be26..6f3adf6548250 100644 --- a/src/Symfony/Component/Mailer/Bridge/Postmark/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Postmark/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Resend/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Resend/phpunit.xml.dist index 1fbbb63f04cf7..16a0161418753 100644 --- a/src/Symfony/Component/Mailer/Bridge/Resend/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Resend/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Scaleway/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Scaleway/phpunit.xml.dist index 658c472b76169..8a5516fd3020a 100644 --- a/src/Symfony/Component/Mailer/Bridge/Scaleway/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Scaleway/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Sendgrid/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Sendgrid/phpunit.xml.dist index 4ddc9c20b680b..2f4883728f030 100644 --- a/src/Symfony/Component/Mailer/Bridge/Sendgrid/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Sendgrid/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/Bridge/Sweego/phpunit.xml.dist b/src/Symfony/Component/Mailer/Bridge/Sweego/phpunit.xml.dist index e7b685b93ee5e..197b11facda40 100644 --- a/src/Symfony/Component/Mailer/Bridge/Sweego/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/Bridge/Sweego/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mailer/phpunit.xml.dist b/src/Symfony/Component/Mailer/phpunit.xml.dist index 3f751f80e2f15..ee476316637e8 100644 --- a/src/Symfony/Component/Mailer/phpunit.xml.dist +++ b/src/Symfony/Component/Mailer/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Messenger/Bridge/AmazonSqs/phpunit.xml.dist b/src/Symfony/Component/Messenger/Bridge/AmazonSqs/phpunit.xml.dist index 11a24ae5fbf8e..7865c659ad59c 100644 --- a/src/Symfony/Component/Messenger/Bridge/AmazonSqs/phpunit.xml.dist +++ b/src/Symfony/Component/Messenger/Bridge/AmazonSqs/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Messenger/Bridge/Amqp/phpunit.xml.dist b/src/Symfony/Component/Messenger/Bridge/Amqp/phpunit.xml.dist index 81a7eeb572dce..f107eda8985e3 100644 --- a/src/Symfony/Component/Messenger/Bridge/Amqp/phpunit.xml.dist +++ b/src/Symfony/Component/Messenger/Bridge/Amqp/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Messenger/Bridge/Beanstalkd/phpunit.xml.dist b/src/Symfony/Component/Messenger/Bridge/Beanstalkd/phpunit.xml.dist index 93782e1c3149f..f2e540d768667 100644 --- a/src/Symfony/Component/Messenger/Bridge/Beanstalkd/phpunit.xml.dist +++ b/src/Symfony/Component/Messenger/Bridge/Beanstalkd/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Messenger/Bridge/Doctrine/phpunit.xml.dist b/src/Symfony/Component/Messenger/Bridge/Doctrine/phpunit.xml.dist index 4218f55ee49d4..1bcddf94ba0f3 100644 --- a/src/Symfony/Component/Messenger/Bridge/Doctrine/phpunit.xml.dist +++ b/src/Symfony/Component/Messenger/Bridge/Doctrine/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Messenger/Bridge/Redis/phpunit.xml.dist b/src/Symfony/Component/Messenger/Bridge/Redis/phpunit.xml.dist index bd250fb6cd89c..10d081a6be9a7 100644 --- a/src/Symfony/Component/Messenger/Bridge/Redis/phpunit.xml.dist +++ b/src/Symfony/Component/Messenger/Bridge/Redis/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Messenger/phpunit.xml.dist b/src/Symfony/Component/Messenger/phpunit.xml.dist index dbc0bcab008b3..84dd5e81d6dbe 100644 --- a/src/Symfony/Component/Messenger/phpunit.xml.dist +++ b/src/Symfony/Component/Messenger/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Mime/phpunit.xml.dist b/src/Symfony/Component/Mime/phpunit.xml.dist index f2dc115a60ee1..e8878d6a300ee 100644 --- a/src/Symfony/Component/Mime/phpunit.xml.dist +++ b/src/Symfony/Component/Mime/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/AllMySms/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/AllMySms/phpunit.xml.dist index b2e119058b241..8c75ef56bd064 100644 --- a/src/Symfony/Component/Notifier/Bridge/AllMySms/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/AllMySms/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/AmazonSns/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/AmazonSns/phpunit.xml.dist index 2521d7b29a87e..718ee65b76cde 100644 --- a/src/Symfony/Component/Notifier/Bridge/AmazonSns/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/AmazonSns/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Bandwidth/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Bandwidth/phpunit.xml.dist index 349c2996e3c35..7229edf233473 100644 --- a/src/Symfony/Component/Notifier/Bridge/Bandwidth/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Bandwidth/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Bluesky/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Bluesky/phpunit.xml.dist index 83eb20afcaa0f..d7e37a4040c2e 100644 --- a/src/Symfony/Component/Notifier/Bridge/Bluesky/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Bluesky/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Brevo/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Brevo/phpunit.xml.dist index 7b9c28ca91ce5..296c0f579464b 100644 --- a/src/Symfony/Component/Notifier/Bridge/Brevo/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Brevo/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Chatwork/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Chatwork/phpunit.xml.dist index 555e5f8ac1a06..32981813695f7 100644 --- a/src/Symfony/Component/Notifier/Bridge/Chatwork/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Chatwork/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/ClickSend/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/ClickSend/phpunit.xml.dist index 467e5f2b11272..1d047aa59eeed 100644 --- a/src/Symfony/Component/Notifier/Bridge/ClickSend/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/ClickSend/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Clickatell/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Clickatell/phpunit.xml.dist index ed38fd25a2988..ed8d2e865b472 100644 --- a/src/Symfony/Component/Notifier/Bridge/Clickatell/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Clickatell/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/ContactEveryone/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/ContactEveryone/phpunit.xml.dist index 6996fd916a942..906af064d0654 100644 --- a/src/Symfony/Component/Notifier/Bridge/ContactEveryone/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/ContactEveryone/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Discord/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Discord/phpunit.xml.dist index ec6db48d567c0..d383ec89123a4 100644 --- a/src/Symfony/Component/Notifier/Bridge/Discord/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Discord/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Engagespot/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Engagespot/phpunit.xml.dist index ace6824e0135f..d9288b507e6eb 100644 --- a/src/Symfony/Component/Notifier/Bridge/Engagespot/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Engagespot/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Esendex/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Esendex/phpunit.xml.dist index 9ce6099662129..ebe95ed62086f 100644 --- a/src/Symfony/Component/Notifier/Bridge/Esendex/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Esendex/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Expo/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Expo/phpunit.xml.dist index 1ea46afbfb259..8c7a5e8edb596 100644 --- a/src/Symfony/Component/Notifier/Bridge/Expo/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Expo/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/FakeChat/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/FakeChat/phpunit.xml.dist index 83cbb2241c31b..212e1cc48e947 100644 --- a/src/Symfony/Component/Notifier/Bridge/FakeChat/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/FakeChat/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/FakeSms/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/FakeSms/phpunit.xml.dist index 0a2581bb1344a..6726ebac98554 100644 --- a/src/Symfony/Component/Notifier/Bridge/FakeSms/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/FakeSms/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Firebase/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Firebase/phpunit.xml.dist index 691c2f23ee374..6f42f1395ecb2 100644 --- a/src/Symfony/Component/Notifier/Bridge/Firebase/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Firebase/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/FortySixElks/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/FortySixElks/phpunit.xml.dist index 9e5ff92b3d352..30e4ea6cdfd3a 100644 --- a/src/Symfony/Component/Notifier/Bridge/FortySixElks/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/FortySixElks/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/FreeMobile/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/FreeMobile/phpunit.xml.dist index 9368e4578d4cf..b1de2b8791650 100644 --- a/src/Symfony/Component/Notifier/Bridge/FreeMobile/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/FreeMobile/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/GatewayApi/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/GatewayApi/phpunit.xml.dist index 3cb4fdf9b36aa..1d1bb3375d242 100644 --- a/src/Symfony/Component/Notifier/Bridge/GatewayApi/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/GatewayApi/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/GoIp/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/GoIp/phpunit.xml.dist index 8c241bac9776e..ebc79fa42977d 100644 --- a/src/Symfony/Component/Notifier/Bridge/GoIp/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/GoIp/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/GoogleChat/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/GoogleChat/phpunit.xml.dist index 3888256dbd9d8..bb8677f3ec084 100644 --- a/src/Symfony/Component/Notifier/Bridge/GoogleChat/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/GoogleChat/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Infobip/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Infobip/phpunit.xml.dist index cccec7e8b9c2c..05d5f4bf1d587 100644 --- a/src/Symfony/Component/Notifier/Bridge/Infobip/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Infobip/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Iqsms/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Iqsms/phpunit.xml.dist index 6d5664e6b7976..1c31c175dd6bf 100644 --- a/src/Symfony/Component/Notifier/Bridge/Iqsms/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Iqsms/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Isendpro/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Isendpro/phpunit.xml.dist index 5f69d9f229df5..48184bfde6b42 100644 --- a/src/Symfony/Component/Notifier/Bridge/Isendpro/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Isendpro/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/JoliNotif/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/JoliNotif/phpunit.xml.dist index 14a26d4cd15b4..1134af27d109b 100644 --- a/src/Symfony/Component/Notifier/Bridge/JoliNotif/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/JoliNotif/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/KazInfoTeh/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/KazInfoTeh/phpunit.xml.dist index c248e08f9efce..9436ccfc1df2f 100644 --- a/src/Symfony/Component/Notifier/Bridge/KazInfoTeh/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/KazInfoTeh/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/LightSms/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/LightSms/phpunit.xml.dist index 971ae19ccce1f..1b19cee230192 100644 --- a/src/Symfony/Component/Notifier/Bridge/LightSms/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/LightSms/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/LineBot/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/LineBot/phpunit.xml.dist index 98518cf9b3a0c..2e36048283c20 100644 --- a/src/Symfony/Component/Notifier/Bridge/LineBot/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/LineBot/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/LineNotify/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/LineNotify/phpunit.xml.dist index edcf0154115c4..97f4c7fbb7797 100644 --- a/src/Symfony/Component/Notifier/Bridge/LineNotify/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/LineNotify/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/LinkedIn/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/LinkedIn/phpunit.xml.dist index c1328210e5817..e8a7bcea5f1ce 100644 --- a/src/Symfony/Component/Notifier/Bridge/LinkedIn/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/LinkedIn/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Lox24/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Lox24/phpunit.xml.dist index 107589fb8fbd5..13fe7e112624a 100644 --- a/src/Symfony/Component/Notifier/Bridge/Lox24/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Lox24/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Mailjet/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Mailjet/phpunit.xml.dist index d2ab08b241581..52daa79d6fb45 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mailjet/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Mailjet/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Mastodon/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Mastodon/phpunit.xml.dist index 4618d21c00578..6865c34db100f 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mastodon/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Mastodon/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Matrix/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Matrix/phpunit.xml.dist index 09a558b860acd..82103dc62ac8e 100644 --- a/src/Symfony/Component/Notifier/Bridge/Matrix/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Matrix/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Mattermost/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Mattermost/phpunit.xml.dist index c19ed651f2c5f..2cdae9135effe 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mattermost/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Mattermost/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Mercure/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Mercure/phpunit.xml.dist index e03dbda94401f..f444eaba82dbe 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mercure/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Mercure/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/MessageBird/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/MessageBird/phpunit.xml.dist index b0550084ed036..ba870ba68551f 100644 --- a/src/Symfony/Component/Notifier/Bridge/MessageBird/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/MessageBird/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/MessageMedia/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/MessageMedia/phpunit.xml.dist index e63f72f42eeb9..6f53f406e994e 100644 --- a/src/Symfony/Component/Notifier/Bridge/MessageMedia/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/MessageMedia/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/phpunit.xml.dist index 65437d6b28307..ef4143f5230a3 100644 --- a/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Mobyt/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Mobyt/phpunit.xml.dist index 1fc35ae0f77ed..32c17f4450156 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mobyt/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Mobyt/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Novu/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Novu/phpunit.xml.dist index 90edde5aee135..801402b50a911 100644 --- a/src/Symfony/Component/Notifier/Bridge/Novu/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Novu/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Ntfy/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Ntfy/phpunit.xml.dist index 42f9b09b05786..d756c58d02ad8 100644 --- a/src/Symfony/Component/Notifier/Bridge/Ntfy/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Ntfy/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Octopush/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Octopush/phpunit.xml.dist index 5f56cddb74fe8..dab80272ed8d4 100644 --- a/src/Symfony/Component/Notifier/Bridge/Octopush/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Octopush/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/OneSignal/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/OneSignal/phpunit.xml.dist index 766e8e6bec811..575fe44ab11a2 100644 --- a/src/Symfony/Component/Notifier/Bridge/OneSignal/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/OneSignal/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/OrangeSms/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/OrangeSms/phpunit.xml.dist index 4c77905b39ed7..535ee7cd8c636 100644 --- a/src/Symfony/Component/Notifier/Bridge/OrangeSms/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/OrangeSms/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/OvhCloud/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/OvhCloud/phpunit.xml.dist index ddb7c9c22175f..9997b73831112 100644 --- a/src/Symfony/Component/Notifier/Bridge/OvhCloud/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/OvhCloud/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/PagerDuty/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/PagerDuty/phpunit.xml.dist index 1288eaf8002bb..3adee7cb005e9 100644 --- a/src/Symfony/Component/Notifier/Bridge/PagerDuty/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/PagerDuty/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Plivo/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Plivo/phpunit.xml.dist index a04c7b8523de1..d6f4da5ae61de 100644 --- a/src/Symfony/Component/Notifier/Bridge/Plivo/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Plivo/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Primotexto/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Primotexto/phpunit.xml.dist index d116cf26f91a2..4db2a1c8bfb72 100644 --- a/src/Symfony/Component/Notifier/Bridge/Primotexto/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Primotexto/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Pushover/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Pushover/phpunit.xml.dist index 0301abe7f521e..b50ff5697b97a 100644 --- a/src/Symfony/Component/Notifier/Bridge/Pushover/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Pushover/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Pushy/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Pushy/phpunit.xml.dist index 70c039868dd5b..079201e815f8b 100644 --- a/src/Symfony/Component/Notifier/Bridge/Pushy/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Pushy/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Redlink/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Redlink/phpunit.xml.dist index 4c8328b13e19f..06b88b066fef6 100644 --- a/src/Symfony/Component/Notifier/Bridge/Redlink/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Redlink/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/RingCentral/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/RingCentral/phpunit.xml.dist index 2938620e27eae..3e368f88c1888 100644 --- a/src/Symfony/Component/Notifier/Bridge/RingCentral/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/RingCentral/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/RocketChat/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/RocketChat/phpunit.xml.dist index 8825c9978ce21..7899aabcfeddb 100644 --- a/src/Symfony/Component/Notifier/Bridge/RocketChat/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/RocketChat/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Sendberry/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Sendberry/phpunit.xml.dist index 5d727c28193ef..6e4f093887e0a 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sendberry/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Sendberry/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Sevenio/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Sevenio/phpunit.xml.dist index b0345bab03476..4a68d85f3dcc8 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sevenio/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Sevenio/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/SimpleTextin/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/SimpleTextin/phpunit.xml.dist index e64eb0ac1b698..ed5fe486e7c63 100644 --- a/src/Symfony/Component/Notifier/Bridge/SimpleTextin/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/SimpleTextin/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Sinch/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Sinch/phpunit.xml.dist index cfa584a1a6423..c6fad6721bd23 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sinch/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Sinch/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Sipgate/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Sipgate/phpunit.xml.dist index 1a0c5615a2f6b..086a266f4ab30 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sipgate/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Sipgate/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Slack/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Slack/phpunit.xml.dist index edab56e069dfa..4ce22f4e77d46 100644 --- a/src/Symfony/Component/Notifier/Bridge/Slack/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Slack/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Sms77/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Sms77/phpunit.xml.dist index 900ea053926d9..14c159d56c9cd 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sms77/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Sms77/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/SmsBiuras/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/SmsBiuras/phpunit.xml.dist index 9d8f21f61e3a6..856cba3db58a7 100644 --- a/src/Symfony/Component/Notifier/Bridge/SmsBiuras/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/SmsBiuras/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/SmsFactor/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/SmsFactor/phpunit.xml.dist index 6d977fe99422a..d65da4ba0ee02 100644 --- a/src/Symfony/Component/Notifier/Bridge/SmsFactor/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/SmsFactor/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/SmsSluzba/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/SmsSluzba/phpunit.xml.dist index e10629ff0bc45..36e0331b92430 100644 --- a/src/Symfony/Component/Notifier/Bridge/SmsSluzba/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/SmsSluzba/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Smsapi/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Smsapi/phpunit.xml.dist index 0154ed97d30e7..377ce60bf9140 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsapi/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Smsapi/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Smsbox/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Smsbox/phpunit.xml.dist index d021d35e1406e..290be5611ff63 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsbox/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Smsbox/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Smsc/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Smsc/phpunit.xml.dist index 9304344f90770..bfa0ee25de408 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsc/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Smsc/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Smsense/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Smsense/phpunit.xml.dist index 666759b045fa7..6ac355fef008b 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsense/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Smsense/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Smsmode/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Smsmode/phpunit.xml.dist index 07db29eee49c2..fd9eab894b5f9 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsmode/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Smsmode/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/SpotHit/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/SpotHit/phpunit.xml.dist index fff2b199aa474..d847f4cca94de 100644 --- a/src/Symfony/Component/Notifier/Bridge/SpotHit/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/SpotHit/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Sweego/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Sweego/phpunit.xml.dist index e27827e44ef97..f2741a1955817 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sweego/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Sweego/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Telegram/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Telegram/phpunit.xml.dist index 30fbbb562f601..cf1a916067338 100644 --- a/src/Symfony/Component/Notifier/Bridge/Telegram/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Telegram/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Telnyx/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Telnyx/phpunit.xml.dist index 36dec4eeecce2..c55f063058421 100644 --- a/src/Symfony/Component/Notifier/Bridge/Telnyx/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Telnyx/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Termii/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Termii/phpunit.xml.dist index 571e1e86f7842..49521df8eebd8 100644 --- a/src/Symfony/Component/Notifier/Bridge/Termii/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Termii/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/TurboSms/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/TurboSms/phpunit.xml.dist index 2079321ef1f27..a8be9bf0a1b5d 100644 --- a/src/Symfony/Component/Notifier/Bridge/TurboSms/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/TurboSms/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Twilio/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Twilio/phpunit.xml.dist index 499f3950115bf..dfaa4b04a1c2f 100644 --- a/src/Symfony/Component/Notifier/Bridge/Twilio/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Twilio/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Twitter/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Twitter/phpunit.xml.dist index 722abbf5bfd0e..d19d637ba5ab0 100644 --- a/src/Symfony/Component/Notifier/Bridge/Twitter/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Twitter/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Unifonic/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Unifonic/phpunit.xml.dist index ef050780745f1..42b29e5a7c698 100644 --- a/src/Symfony/Component/Notifier/Bridge/Unifonic/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Unifonic/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Vonage/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Vonage/phpunit.xml.dist index b22c6e00e070d..811b2fc64b13a 100644 --- a/src/Symfony/Component/Notifier/Bridge/Vonage/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Vonage/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Yunpian/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Yunpian/phpunit.xml.dist index f1bd444b1c9a5..dd272c118b638 100644 --- a/src/Symfony/Component/Notifier/Bridge/Yunpian/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Yunpian/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Zendesk/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Zendesk/phpunit.xml.dist index 559c4ad99ab89..83631cc16a640 100644 --- a/src/Symfony/Component/Notifier/Bridge/Zendesk/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Zendesk/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/Bridge/Zulip/phpunit.xml.dist b/src/Symfony/Component/Notifier/Bridge/Zulip/phpunit.xml.dist index 6ed13f15562b3..57d993fa7a614 100644 --- a/src/Symfony/Component/Notifier/Bridge/Zulip/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/Bridge/Zulip/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Notifier/phpunit.xml.dist b/src/Symfony/Component/Notifier/phpunit.xml.dist index b0c9899b82d79..393a7fab431b4 100644 --- a/src/Symfony/Component/Notifier/phpunit.xml.dist +++ b/src/Symfony/Component/Notifier/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/ObjectMapper/phpunit.xml.dist b/src/Symfony/Component/ObjectMapper/phpunit.xml.dist index f67fdb988626a..86c100d0dadcd 100644 --- a/src/Symfony/Component/ObjectMapper/phpunit.xml.dist +++ b/src/Symfony/Component/ObjectMapper/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/OptionsResolver/phpunit.xml.dist b/src/Symfony/Component/OptionsResolver/phpunit.xml.dist index 58095f4a57a8a..05c6bf4b110d4 100644 --- a/src/Symfony/Component/OptionsResolver/phpunit.xml.dist +++ b/src/Symfony/Component/OptionsResolver/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/PasswordHasher/phpunit.xml.dist b/src/Symfony/Component/PasswordHasher/phpunit.xml.dist index 57fdcd18ea23f..fd25ead71e2c7 100644 --- a/src/Symfony/Component/PasswordHasher/phpunit.xml.dist +++ b/src/Symfony/Component/PasswordHasher/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Process/phpunit.xml.dist b/src/Symfony/Component/Process/phpunit.xml.dist index c62cac132ee60..31c79b745177d 100644 --- a/src/Symfony/Component/Process/phpunit.xml.dist +++ b/src/Symfony/Component/Process/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/PropertyAccess/phpunit.xml.dist b/src/Symfony/Component/PropertyAccess/phpunit.xml.dist index b8bd00a46a5ea..50a10fb67536c 100644 --- a/src/Symfony/Component/PropertyAccess/phpunit.xml.dist +++ b/src/Symfony/Component/PropertyAccess/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/PropertyInfo/phpunit.xml.dist b/src/Symfony/Component/PropertyInfo/phpunit.xml.dist index 72edfa1c37778..09f241a7ff738 100644 --- a/src/Symfony/Component/PropertyInfo/phpunit.xml.dist +++ b/src/Symfony/Component/PropertyInfo/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/RateLimiter/phpunit.xml.dist b/src/Symfony/Component/RateLimiter/phpunit.xml.dist index 419fc5525cef1..b8e5a525131da 100644 --- a/src/Symfony/Component/RateLimiter/phpunit.xml.dist +++ b/src/Symfony/Component/RateLimiter/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/RemoteEvent/phpunit.xml.dist b/src/Symfony/Component/RemoteEvent/phpunit.xml.dist index 152a1c5245c97..e142789431675 100644 --- a/src/Symfony/Component/RemoteEvent/phpunit.xml.dist +++ b/src/Symfony/Component/RemoteEvent/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Routing/phpunit.xml.dist b/src/Symfony/Component/Routing/phpunit.xml.dist index 6d89fd81bc692..5add0ec3780f7 100644 --- a/src/Symfony/Component/Routing/phpunit.xml.dist +++ b/src/Symfony/Component/Routing/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Runtime/phpunit.xml.dist b/src/Symfony/Component/Runtime/phpunit.xml.dist index a1c76a7e1b720..1a925e4f40661 100644 --- a/src/Symfony/Component/Runtime/phpunit.xml.dist +++ b/src/Symfony/Component/Runtime/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Scheduler/phpunit.xml.dist b/src/Symfony/Component/Scheduler/phpunit.xml.dist index 3e52a6ea16663..88142636aff05 100644 --- a/src/Symfony/Component/Scheduler/phpunit.xml.dist +++ b/src/Symfony/Component/Scheduler/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Security/Core/phpunit.xml.dist b/src/Symfony/Component/Security/Core/phpunit.xml.dist index ae6997a0e56a8..658a762286c1d 100644 --- a/src/Symfony/Component/Security/Core/phpunit.xml.dist +++ b/src/Symfony/Component/Security/Core/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Security/Csrf/phpunit.xml.dist b/src/Symfony/Component/Security/Csrf/phpunit.xml.dist index 8bdd13d2f71e5..01d2e37845323 100644 --- a/src/Symfony/Component/Security/Csrf/phpunit.xml.dist +++ b/src/Symfony/Component/Security/Csrf/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Security/Http/phpunit.xml.dist b/src/Symfony/Component/Security/Http/phpunit.xml.dist index b073d7abbe30d..27788b5b1f872 100644 --- a/src/Symfony/Component/Security/Http/phpunit.xml.dist +++ b/src/Symfony/Component/Security/Http/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Semaphore/phpunit.xml.dist b/src/Symfony/Component/Semaphore/phpunit.xml.dist index 33e150810b856..d7d5b60358221 100644 --- a/src/Symfony/Component/Semaphore/phpunit.xml.dist +++ b/src/Symfony/Component/Semaphore/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Serializer/phpunit.xml.dist b/src/Symfony/Component/Serializer/phpunit.xml.dist index 173cf616b6979..969ba0ab6e936 100644 --- a/src/Symfony/Component/Serializer/phpunit.xml.dist +++ b/src/Symfony/Component/Serializer/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Stopwatch/phpunit.xml.dist b/src/Symfony/Component/Stopwatch/phpunit.xml.dist index d2b18e7f54808..394f1d5d9e287 100644 --- a/src/Symfony/Component/Stopwatch/phpunit.xml.dist +++ b/src/Symfony/Component/Stopwatch/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/String/phpunit.xml.dist b/src/Symfony/Component/String/phpunit.xml.dist index 092194286a9e0..ae92ba24159c9 100644 --- a/src/Symfony/Component/String/phpunit.xml.dist +++ b/src/Symfony/Component/String/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Translation/Bridge/Crowdin/phpunit.xml.dist b/src/Symfony/Component/Translation/Bridge/Crowdin/phpunit.xml.dist index 268c6facfa1cf..c1b841ca4c64f 100644 --- a/src/Symfony/Component/Translation/Bridge/Crowdin/phpunit.xml.dist +++ b/src/Symfony/Component/Translation/Bridge/Crowdin/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Translation/Bridge/Loco/phpunit.xml.dist b/src/Symfony/Component/Translation/Bridge/Loco/phpunit.xml.dist index 9f50640ae2a50..6316070c601cc 100644 --- a/src/Symfony/Component/Translation/Bridge/Loco/phpunit.xml.dist +++ b/src/Symfony/Component/Translation/Bridge/Loco/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Translation/Bridge/Lokalise/phpunit.xml.dist b/src/Symfony/Component/Translation/Bridge/Lokalise/phpunit.xml.dist index fbf8c75b33540..ea437af8e704b 100644 --- a/src/Symfony/Component/Translation/Bridge/Lokalise/phpunit.xml.dist +++ b/src/Symfony/Component/Translation/Bridge/Lokalise/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Translation/Bridge/Phrase/phpunit.xml.dist b/src/Symfony/Component/Translation/Bridge/Phrase/phpunit.xml.dist index a206de8ba148f..3167b0f5dde68 100644 --- a/src/Symfony/Component/Translation/Bridge/Phrase/phpunit.xml.dist +++ b/src/Symfony/Component/Translation/Bridge/Phrase/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Translation/phpunit.xml.dist b/src/Symfony/Component/Translation/phpunit.xml.dist index 91a6867a87902..8507771076482 100644 --- a/src/Symfony/Component/Translation/phpunit.xml.dist +++ b/src/Symfony/Component/Translation/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/TypeInfo/phpunit.xml.dist b/src/Symfony/Component/TypeInfo/phpunit.xml.dist index 59d02e7be47f2..707d40e2ef90e 100644 --- a/src/Symfony/Component/TypeInfo/phpunit.xml.dist +++ b/src/Symfony/Component/TypeInfo/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Validator/phpunit.xml.dist b/src/Symfony/Component/Validator/phpunit.xml.dist index cdd1c74a908cb..aa00294187330 100644 --- a/src/Symfony/Component/Validator/phpunit.xml.dist +++ b/src/Symfony/Component/Validator/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/VarDumper/phpunit.xml.dist b/src/Symfony/Component/VarDumper/phpunit.xml.dist index a67c97251efbe..40303636830b5 100644 --- a/src/Symfony/Component/VarDumper/phpunit.xml.dist +++ b/src/Symfony/Component/VarDumper/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/VarExporter/phpunit.xml.dist b/src/Symfony/Component/VarExporter/phpunit.xml.dist index bb837da2c24f4..9e1ca3b1f3bc7 100644 --- a/src/Symfony/Component/VarExporter/phpunit.xml.dist +++ b/src/Symfony/Component/VarExporter/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/WebLink/phpunit.xml.dist b/src/Symfony/Component/WebLink/phpunit.xml.dist index c533bb7cbfa70..f2ad594672ad2 100644 --- a/src/Symfony/Component/WebLink/phpunit.xml.dist +++ b/src/Symfony/Component/WebLink/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Webhook/phpunit.xml.dist b/src/Symfony/Component/Webhook/phpunit.xml.dist index 0cfad7da6125e..807164bee0f57 100644 --- a/src/Symfony/Component/Webhook/phpunit.xml.dist +++ b/src/Symfony/Component/Webhook/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Workflow/phpunit.xml.dist b/src/Symfony/Component/Workflow/phpunit.xml.dist index f4d82677e0e93..4423aeb22fbb5 100644 --- a/src/Symfony/Component/Workflow/phpunit.xml.dist +++ b/src/Symfony/Component/Workflow/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Component/Yaml/phpunit.xml.dist b/src/Symfony/Component/Yaml/phpunit.xml.dist index e1f4cbc888b2e..769d04681b28e 100644 --- a/src/Symfony/Component/Yaml/phpunit.xml.dist +++ b/src/Symfony/Component/Yaml/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" > diff --git a/src/Symfony/Contracts/phpunit.xml.dist b/src/Symfony/Contracts/phpunit.xml.dist index 8a2d5481ed3cf..c8a9f2644cc72 100644 --- a/src/Symfony/Contracts/phpunit.xml.dist +++ b/src/Symfony/Contracts/phpunit.xml.dist @@ -5,7 +5,6 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" - failOnDeprecation="true" failOnRisky="true" failOnWarning="true" >