From c819bd7e705f7937552e2fee374fdf254b992919 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Fri, 21 Nov 2014 10:15:17 +0000 Subject: [PATCH] Update config tests to not use environment variables --- tests/Composer/Test/ConfigTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Composer/Test/ConfigTest.php b/tests/Composer/Test/ConfigTest.php index 705fe78e0..521fb634b 100644 --- a/tests/Composer/Test/ConfigTest.php +++ b/tests/Composer/Test/ConfigTest.php @@ -21,7 +21,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase */ public function testAddPackagistRepository($expected, $localConfig, $systemConfig = null) { - $config = new Config(); + $config = new Config(false); if ($systemConfig) { $config->merge(array('repositories' => $systemConfig)); } @@ -102,7 +102,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase 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('bar' => 'baz')))); @@ -111,7 +111,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase public function testVarReplacement() { - $config = new Config(); + $config = new Config(false); $config->merge(array('config' => array('a' => 'b', 'c' => '{$a}'))); $config->merge(array('config' => array('bin-dir' => '$HOME', 'cache-dir' => '~/foo/'))); @@ -123,7 +123,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase 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'))));