Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 511faf9

Browse filesBrowse files
committed
Remove unnecessary changes
1 parent 6a63b3f commit 511faf9
Copy full SHA for 511faf9

File tree

4 files changed

+4
-14
lines changed
Filter options

4 files changed

+4
-14
lines changed

‎src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ public function endTest($test, $time)
270270
}
271271
}
272272
$this->runsInSeparateProcess = false;
273-
putenv('SYMFONY_DEPRECATIONS_SERIALIZE=');
274273
}
275274

276275
if ($this->expectedDeprecations) {

‎src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010
* @group legacy
1111
*
1212
* @runTestsInSeparateProcesses
13-
* @preserveGlobalState disabled
14-
*
15-
* Note that for the deprecation handler to work in a separate process we need to disable the preservation of global
16-
* state. This is because composer's autoloader stores which files have been autoloaded in the global
17-
* '__composer_autoload_files'. If this is preserved then bootstrap.php will not run again meaning that deprecations
18-
* won't be collected.
1913
*/
2014
class ProcessIsolationTest extends TestCase
2115
{

‎src/Symfony/Bridge/PhpUnit/bootstrap.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/bootstrap.php
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
use Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
1414

1515
// Detect if we're loaded by an actual run of phpunit
16-
if ($ser = getenv('SYMFONY_DEPRECATIONS_SERIALIZE')) {
17-
DeprecationErrorHandler::collectDeprecations($ser);
16+
if (!defined('PHPUNIT_COMPOSER_INSTALL') && !class_exists('PHPUnit_TextUI_Command', false) && !class_exists('PHPUnit\TextUI\Command', false)) {
17+
if ($ser = getenv('SYMFONY_DEPRECATIONS_SERIALIZE')) {
18+
DeprecationErrorHandler::collectDeprecations($ser);
19+
}
1820

1921
return;
2022
}

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/phpunit.xml.dist
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
</testsuite>
2020
</testsuites>
2121

22-
<listeners>
23-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
24-
</listener>
25-
</listeners>
26-
2722
<filter>
2823
<whitelist>
2924
<directory>./</directory>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.