浏览代码

Update config tests to not use environment variables

Chris Smith 10 年之前
父节点
当前提交
c819bd7e70
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      tests/Composer/Test/ConfigTest.php

+ 4 - 4
tests/Composer/Test/ConfigTest.php

@@ -21,7 +21,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
      */
      */
     public function testAddPackagistRepository($expected, $localConfig, $systemConfig = null)
     public function testAddPackagistRepository($expected, $localConfig, $systemConfig = null)
     {
     {
-        $config = new Config();
+        $config = new Config(false);
         if ($systemConfig) {
         if ($systemConfig) {
             $config->merge(array('repositories' => $systemConfig));
             $config->merge(array('repositories' => $systemConfig));
         }
         }
@@ -102,7 +102,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
 
 
     public function testMergeGithubOauth()
     public function testMergeGithubOauth()
     {
     {
-        $config = new Config();
+        $config = new Config(false);
         $config->merge(array('config' => array('github-oauth' => array('foo' => 'bar'))));
         $config->merge(array('config' => array('github-oauth' => array('foo' => 'bar'))));
         $config->merge(array('config' => array('github-oauth' => array('bar' => 'baz'))));
         $config->merge(array('config' => array('github-oauth' => array('bar' => 'baz'))));
 
 
@@ -111,7 +111,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
 
 
     public function testVarReplacement()
     public function testVarReplacement()
     {
     {
-        $config = new Config();
+        $config = new Config(false);
         $config->merge(array('config' => array('a' => 'b', 'c' => '{$a}')));
         $config->merge(array('config' => array('a' => 'b', 'c' => '{$a}')));
         $config->merge(array('config' => array('bin-dir' => '$HOME', 'cache-dir' => '~/foo/')));
         $config->merge(array('config' => array('bin-dir' => '$HOME', 'cache-dir' => '~/foo/')));
 
 
@@ -123,7 +123,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
 
 
     public function testOverrideGithubProtocols()
     public function testOverrideGithubProtocols()
     {
     {
-        $config = new Config();
+        $config = new Config(false);
         $config->merge(array('config' => array('github-protocols' => array('https', 'git'))));
         $config->merge(array('config' => array('github-protocols' => array('https', 'git'))));
         $config->merge(array('config' => array('github-protocols' => array('https'))));
         $config->merge(array('config' => array('github-protocols' => array('https'))));