minor #30923 [BrowserKit vs HttpFoundation][TestSuite]Run test in separate process (greg0ire)

This PR was merged into the 3.4 branch.

Discussion
----------

[BrowserKit vs HttpFoundation][TestSuite]Run test in separate process

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

This test calls code that defines some environment variables, which in
turn trigger the registration of a the deprecation error handler, which
causes unexpected issues when testing other components.

Commits
-------

6d51a04b11 Run test in separate process
This commit is contained in:
Fabien Potencier 2019-04-07 09:56:31 +02:00
commit adb15a03d7
1 changed files with 3 additions and 0 deletions

View File

@ -621,6 +621,9 @@ class ClientTest extends TestCase
$this->assertEquals([], $client->getCookieJar()->all(), '->restart() clears the cookies');
}
/**
* @runInSeparateProcess
*/
public function testInsulatedRequests()
{
$client = new TestClient();