Skip to content

Commit 54939f7

Browse files
[phpunit-bridge] default to not failing on deprecations
1 parent 5129d85 commit 54939f7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

symfony/phpunit-bridge/3.3/bin/phpunit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-php
55
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
66
exit(1);
77
}
8+
if (false === getenv('SYMFONY_DEPRECATIONS_HELPER')) {
9+
// see https://symfony.com/doc/current/components/phpunit_bridge.html#making-tests-fail
10+
putenv('SYMFONY_DEPRECATIONS_HELPER=999999');
11+
}
812
if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {
913
putenv('SYMFONY_PHPUNIT_REMOVE=symfony/yaml');
1014
}

symfony/phpunit-bridge/4.1/bin/phpunit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-php
55
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
66
exit(1);
77
}
8+
if (false === getenv('SYMFONY_DEPRECATIONS_HELPER')) {
9+
// see https://symfony.com/doc/current/components/phpunit_bridge.html#making-tests-fail
10+
putenv('SYMFONY_DEPRECATIONS_HELPER=999999');
11+
}
812
if (false === getenv('SYMFONY_PHPUNIT_REMOVE')) {
913
putenv('SYMFONY_PHPUNIT_REMOVE=');
1014
}

0 commit comments

Comments
 (0)