1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Made env variable parsing in path replacements generic across platforms and replaced old config.php implementation.

This commit is contained in:
Niels Keurentjes 2016-04-13 02:02:50 +02:00
parent f5422a441d
commit c9534d48c1
5 changed files with 11 additions and 14 deletions

View file

@ -13,7 +13,6 @@
namespace Composer\Test;
use Composer\Config;
use Composer\Downloader\TransportException;
class ConfigTest extends \PHPUnit_Framework_TestCase
{
@ -151,7 +150,7 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
$home = rtrim(getenv('HOME') ?: getenv('USERPROFILE'), '\\/');
$this->assertEquals('b', $config->get('c'));
$this->assertEquals($home.'/', $config->get('bin-dir'));
$this->assertEquals($home, $config->get('bin-dir'));
$this->assertEquals($home.'/foo', $config->get('cache-dir'));
}