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:
parent
f5422a441d
commit
c9534d48c1
5 changed files with 11 additions and 14 deletions
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue