瀏覽代碼

Fix hhvm not running tests in a separate process

johnstevenson 8 年之前
父節點
當前提交
589b1d6fa2
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      tests/Composer/Test/XdebugHandlerTest.php

+ 3 - 3
tests/Composer/Test/XdebugHandlerTest.php

@@ -16,9 +16,6 @@ use Composer\Test\Mock\XdebugHandlerMock;
 
 /**
  * @author John Stevenson <john-stevenson@blueyonder.co.uk>
- *
- * @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()