From 116b17dfc0ed5a95758868a46ffd28c9d7871980 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 21 Dec 2011 16:38:31 +0100 Subject: [PATCH] Fix test suite for OSX --- tests/Composer/Test/Autoload/AutoloadGeneratorTest.php | 2 +- tests/Composer/Test/Installer/LibraryInstallerTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php index d1236d6f0..29bb690f8 100644 --- a/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php +++ b/tests/Composer/Test/Autoload/AutoloadGeneratorTest.php @@ -29,7 +29,7 @@ class AutoloadGeneratorTest extends \PHPUnit_Framework_TestCase $fs = new Filesystem; $that = $this; - $this->workingDir = sys_get_temp_dir(); + $this->workingDir = realpath(sys_get_temp_dir()); $this->vendorDir = $this->workingDir.DIRECTORY_SEPARATOR.'composer-test-autoload'; if (is_dir($this->vendorDir)) { $fs->removeDirectory($this->vendorDir); diff --git a/tests/Composer/Test/Installer/LibraryInstallerTest.php b/tests/Composer/Test/Installer/LibraryInstallerTest.php index 21a43df22..d8713aa38 100644 --- a/tests/Composer/Test/Installer/LibraryInstallerTest.php +++ b/tests/Composer/Test/Installer/LibraryInstallerTest.php @@ -28,13 +28,13 @@ class LibraryInstallerTest extends \PHPUnit_Framework_TestCase { $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)) { $fs->removeDirectory($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)) { $fs->removeDirectory($this->binDir); }