[PhpUnitBridge] fix tests

This commit is contained in:
Nicolas Grekas 2019-06-27 18:03:00 +02:00
parent f2f7fb4cf2
commit 9b69dc651a
14 changed files with 29 additions and 14 deletions

View File

@ -115,7 +115,7 @@
"psr/http-client": "^1.0",
"psr/simple-cache": "^1.0",
"egulias/email-validator": "~1.2,>=1.2.8|~2.0",
"symfony/phpunit-bridge": "~3.4|~4.0",
"symfony/phpunit-bridge": "~3.4|~4.0|~5.0",
"symfony/security-acl": "~2.8|~3.0",
"phpdocumentor/reflection-docblock": "^3.0|^4.0"
},

View File

@ -3,7 +3,9 @@ Test DeprecationErrorHandler in default mode
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
unset($_SERVER[$k], $_ENV[$k]);
putenv($k);
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');

View File

@ -3,7 +3,8 @@ Test DeprecationErrorHandler in weak mode
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER=/foo/');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = '/foo/');
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');

View File

@ -3,7 +3,8 @@ Test DeprecationErrorHandler in weak mode
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER=disabled');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'disabled');
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');

View File

@ -3,7 +3,8 @@ Test eval()'d deprecation is not considered as self
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER=max[self]=0');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'max[self]=0');
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');

View File

@ -3,7 +3,8 @@ Test DeprecationErrorHandler in weak vendors mode on vendor file
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER=max[self]=0&max[direct]=0');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'max[self]=0&max[direct]=0');
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');

View File

@ -3,7 +3,8 @@ Test DeprecationErrorHandler with quiet output
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER=verbose=0');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'verbose=0');
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');

View File

@ -3,7 +3,8 @@ Test DeprecationErrorHandler with no self deprecations on self deprecation
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER=max[self]=0');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'max[self]=0');
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');

View File

@ -3,7 +3,9 @@ Test DeprecationErrorHandler in default mode
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
unset($_SERVER[$k], $_ENV[$k]);
putenv($k);
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');

View File

@ -3,7 +3,8 @@ Test DeprecationErrorHandler in weak mode
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER=weak');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'weak');
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');

View File

@ -3,7 +3,8 @@ Test DeprecationErrorHandler in weak vendors mode on eval()'d deprecation
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER=max[self]=0');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'max[self]=0');
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');

View File

@ -3,7 +3,8 @@ Test DeprecationErrorHandler in weak vendors mode on a non vendor file
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER=max[self]=0');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'max[self]=0');
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');

View File

@ -4,7 +4,8 @@ The phar can be regenerated by running php src/Symfony/Bridge/PhpUnit/Tests/Depr
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER=max[self]=0');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'max[self]=0');
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');

View File

@ -3,7 +3,8 @@ Test DeprecationErrorHandler with no self deprecations on vendor deprecation
--FILE--
<?php
putenv('SYMFONY_DEPRECATIONS_HELPER=max[self]=0');
$k = 'SYMFONY_DEPRECATIONS_HELPER';
putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'max[self]=0');
putenv('ANSICON');
putenv('ConEmuANSI');
putenv('TERM');