From 589b1d6fa2c88747fadd6e103f7e198c7bda83ae Mon Sep 17 00:00:00 2001 From: johnstevenson Date: Tue, 6 Sep 2016 16:16:20 +0100 Subject: [PATCH] Fix hhvm not running tests in a separate process --- tests/Composer/Test/XdebugHandlerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Composer/Test/XdebugHandlerTest.php b/tests/Composer/Test/XdebugHandlerTest.php index 2ada703eb..d9875e9a1 100644 --- a/tests/Composer/Test/XdebugHandlerTest.php +++ b/tests/Composer/Test/XdebugHandlerTest.php @@ -16,9 +16,6 @@ use Composer\Test\Mock\XdebugHandlerMock; /** * @author John Stevenson - * - * @backupGlobals disabled - * @runTestsInSeparateProcesses */ class XdebugHandlerTest extends \PHPUnit_Framework_TestCase { @@ -48,6 +45,9 @@ class XdebugHandlerTest extends \PHPUnit_Framework_TestCase $xdebug = new XdebugHandlerMock($loaded); $xdebug->check(); $this->assertFalse($xdebug->restarted); + + // Clear env for subsequent tests + putenv(XdebugHandlerMock::ENV_ALLOW.'=0'); } public function testForceColorSupport()