mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Fix test suite for OSX
This commit is contained in:
parent
f051778192
commit
116b17dfc0
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ class AutoloadGeneratorTest extends \PHPUnit_Framework_TestCase
|
||||||
$fs = new Filesystem;
|
$fs = new Filesystem;
|
||||||
$that = $this;
|
$that = $this;
|
||||||
|
|
||||||
$this->workingDir = sys_get_temp_dir();
|
$this->workingDir = realpath(sys_get_temp_dir());
|
||||||
$this->vendorDir = $this->workingDir.DIRECTORY_SEPARATOR.'composer-test-autoload';
|
$this->vendorDir = $this->workingDir.DIRECTORY_SEPARATOR.'composer-test-autoload';
|
||||||
if (is_dir($this->vendorDir)) {
|
if (is_dir($this->vendorDir)) {
|
||||||
$fs->removeDirectory($this->vendorDir);
|
$fs->removeDirectory($this->vendorDir);
|
||||||
|
|
|
@ -28,13 +28,13 @@ class LibraryInstallerTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
$fs = new Filesystem;
|
$fs = new Filesystem;
|
||||||
|
|
||||||
$this->vendorDir = sys_get_temp_dir().DIRECTORY_SEPARATOR.'composer-test-vendor';
|
$this->vendorDir = realpath(sys_get_temp_dir().DIRECTORY_SEPARATOR.'composer-test-vendor');
|
||||||
if (is_dir($this->vendorDir)) {
|
if (is_dir($this->vendorDir)) {
|
||||||
$fs->removeDirectory($this->vendorDir);
|
$fs->removeDirectory($this->vendorDir);
|
||||||
}
|
}
|
||||||
mkdir($this->vendorDir);
|
mkdir($this->vendorDir);
|
||||||
|
|
||||||
$this->binDir = sys_get_temp_dir().DIRECTORY_SEPARATOR.'composer-test-bin';
|
$this->binDir = realpath(sys_get_temp_dir().DIRECTORY_SEPARATOR.'composer-test-bin');
|
||||||
if (is_dir($this->binDir)) {
|
if (is_dir($this->binDir)) {
|
||||||
$fs->removeDirectory($this->binDir);
|
$fs->removeDirectory($this->binDir);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue