Skip to content

Commit cc4c0a8

Browse files
Merge branch '7.3' into 7.4
* 7.3: [PhpUnitBridge] Fix tests
2 parents 8468717 + a12b28a commit cc4c0a8

30 files changed

+30
-1
lines changed

Legacy/SymfonyTestsListenerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public function endTest($test, $time): void
306306
}
307307

308308
if (self::$expectedDeprecations) {
309-
if (!\in_array($test->getStatus(), [BaseTestRunner::STATUS_SKIPPED, BaseTestRunner::STATUS_INCOMPLETE], true)) {
309+
if (!$test instanceof TestCase || !\in_array($test->getStatus(), [BaseTestRunner::STATUS_SKIPPED, BaseTestRunner::STATUS_INCOMPLETE], true)) {
310310
$test->addToAssertionCount(\count(self::$expectedDeprecations));
311311
}
312312

Tests/DeprecationErrorHandler/baseline.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'baselineFile=' . urlencode($filename))
2626
putenv('ANSICON');
2727
putenv('ConEmuANSI');
2828
putenv('TERM');
29+
putenv('SYMFONY_DEPRECATIONS_SERIALIZE');
2930

3031
$vendor = __DIR__;
3132
while (!file_exists($vendor.'/vendor')) {

Tests/DeprecationErrorHandler/baseline2.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'baselineFile=' . urlencode($filename))
1616
putenv('ANSICON');
1717
putenv('ConEmuANSI');
1818
putenv('TERM');
19+
putenv('SYMFONY_DEPRECATIONS_SERIALIZE');
1920

2021
$vendor = __DIR__;
2122
while (!file_exists($vendor.'/vendor')) {

Tests/DeprecationErrorHandler/baseline3.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'baselineFile=' . urlencode($filename))
1616
putenv('ANSICON');
1717
putenv('ConEmuANSI');
1818
putenv('TERM');
19+
putenv('SYMFONY_DEPRECATIONS_SERIALIZE');
1920

2021
$vendor = __DIR__;
2122
while (!file_exists($vendor.'/vendor')) {

Tests/DeprecationErrorHandler/debug_class_loader_autoload.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'max[total]=0');
88
putenv('ANSICON');
99
putenv('ConEmuANSI');
1010
putenv('TERM');
11+
putenv('SYMFONY_DEPRECATIONS_SERIALIZE');
1112

1213
$vendor = __DIR__;
1314
while (!file_exists($vendor.'/vendor')) {

Tests/DeprecationErrorHandler/debug_class_loader_deprecation.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'max[total]=0');
88
putenv('ANSICON');
99
putenv('ConEmuANSI');
1010
putenv('TERM');
11+
putenv('SYMFONY_DEPRECATIONS_SERIALIZE');
1112

1213
$vendor = __DIR__;
1314
while (!file_exists($vendor.'/vendor')) {

Tests/DeprecationErrorHandler/default.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ putenv($k);
99
putenv('ANSICON');
1010
putenv('ConEmuANSI');
1111
putenv('TERM');
12+
putenv('SYMFONY_DEPRECATIONS_SERIALIZE');
1213

1314
$vendor = __DIR__;
1415
while (!file_exists($vendor.'/vendor')) {

Tests/DeprecationErrorHandler/deprecated_regexp.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = '/foo/');
88
putenv('ANSICON');
99
putenv('ConEmuANSI');
1010
putenv('TERM');
11+
putenv('SYMFONY_DEPRECATIONS_SERIALIZE');
1112

1213
$vendor = __DIR__;
1314
while (!file_exists($vendor.'/vendor')) {

Tests/DeprecationErrorHandler/disabled.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ putenv($k.'='.$_SERVER[$k] = $_ENV[$k] = 'disabled');
88
putenv('ANSICON');
99
putenv('ConEmuANSI');
1010
putenv('TERM');
11+
putenv('SYMFONY_DEPRECATIONS_SERIALIZE');
1112

1213
$vendor = __DIR__;
1314
while (!file_exists($vendor.'/vendor')) {

Tests/DeprecationErrorHandler/disabled_1.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ putenv($k);
99
putenv('ANSICON');
1010
putenv('ConEmuANSI');
1111
putenv('TERM');
12+
putenv('SYMFONY_DEPRECATIONS_SERIALIZE');
1213

1314
$vendor = __DIR__;
1415
while (!file_exists($vendor.'/vendor')) {

0 commit comments

Comments
 (0)