From 54939f7ae8b9bb5821fc1bcce2babfa43daca833 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 23 Jul 2018 21:55:10 +0200 Subject: [PATCH] [phpunit-bridge] default to not failing on deprecations --- symfony/phpunit-bridge/3.3/bin/phpunit | 4 ++++ symfony/phpunit-bridge/4.1/bin/phpunit | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/symfony/phpunit-bridge/3.3/bin/phpunit b/symfony/phpunit-bridge/3.3/bin/phpunit index 75d5be85..6baa2857 100755 --- a/symfony/phpunit-bridge/3.3/bin/phpunit +++ b/symfony/phpunit-bridge/3.3/bin/phpunit @@ -5,6 +5,10 @@ if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-php echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\n"; exit(1); } +if (false === getenv('SYMFONY_DEPRECATIONS_HELPER')) { + // see https://symfony.com/doc/current/components/phpunit_bridge.html#making-tests-fail + putenv('SYMFONY_DEPRECATIONS_HELPER=999999'); +} if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) { putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml'); } diff --git a/symfony/phpunit-bridge/4.1/bin/phpunit b/symfony/phpunit-bridge/4.1/bin/phpunit index 5973cd32..79aa012e 100755 --- a/symfony/phpunit-bridge/4.1/bin/phpunit +++ b/symfony/phpunit-bridge/4.1/bin/phpunit @@ -5,6 +5,10 @@ if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-php echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\n"; exit(1); } +if (false === getenv('SYMFONY_DEPRECATIONS_HELPER')) { + // see https://symfony.com/doc/current/components/phpunit_bridge.html#making-tests-fail + putenv('SYMFONY_DEPRECATIONS_HELPER=999999'); +} if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) { putenv('SYMFONY_PHPUNIT_REMOVE='); }