Skip to content

Commit f26eaaa

Browse files
committed
replace failOnDeprecation XML config attribute with CLI option
1 parent 4218f1e commit f26eaaa

File tree

181 files changed

+5
-180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+5
-180
lines changed

phpunit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ if (getcwd() === realpath(__DIR__.'/src/Symfony/Bridge/PhpUnit')) {
1515
putenv('SYMFONY_DEPRECATIONS_HELPER=disabled');
1616
}
1717
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
18+
19+
if ('weak' !== getenv('SYMFONY_DEPRECATIONS_HELPER') && version_compare(getenv('SYMFONY_PHPUNIT_VERSION'), '11', '>=')) {
20+
$_SERVER['argv'][] = '--fail-on-deprecation';
21+
}
22+
1823
require __DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Bridge/Doctrine/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Bridge/Monolog/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Bridge/PhpUnit/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Bridge/PsrHttpMessage/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Bridge/Twig/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Bundle/DebugBundle/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Bundle/FrameworkBundle/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Bundle/SecurityBundle/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Bundle/TwigBundle/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Bundle/WebProfilerBundle/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Asset/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/AssetMapper/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/BrowserKit/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Cache/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Clock/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Config/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Console/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/CssSelector/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/DependencyInjection/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/DomCrawler/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Dotenv/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Emoji/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/ErrorHandler/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/EventDispatcher/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/ExpressionLanguage/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Filesystem/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Finder/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Form/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/HtmlSanitizer/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/HttpClient/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/HttpFoundation/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/HttpKernel/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Intl/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/JsonPath/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/JsonStreamer/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Ldap/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Lock/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Mailer/Bridge/AhaSend/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Mailer/Bridge/Amazon/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Mailer/Bridge/Azure/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Mailer/Bridge/Brevo/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Mailer/Bridge/Google/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Mailer/Bridge/Infobip/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Mailer/Bridge/MailPace/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Mailer/Bridge/Mailchimp/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Mailer/Bridge/MailerSend/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

src/Symfony/Component/Mailer/Bridge/Mailgun/phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8-
failOnDeprecation="true"
98
failOnRisky="true"
109
failOnWarning="true"
1110
>

0 commit comments

Comments
 (0)