From 918a55659ea0609da55d5fd33182b43b4976776e Mon Sep 17 00:00:00 2001 From: Reto Kaiser Date: Mon, 1 Apr 2013 21:37:47 +0200 Subject: [PATCH] Call realpath() on result of sys_get_temp_dir() On OSX the temp dir is within /var, which is a symlink to /private/var. If this is not resolved, the comparison will fail when comparing to the result of `git archive` in testGitExcludes(). --- .../Test/Package/Archiver/ArchivableFilesFinderTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php b/tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php index 1e780414d..0f6318b6d 100644 --- a/tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php +++ b/tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php @@ -29,7 +29,7 @@ class ArchivableFilesFinderTest extends \PHPUnit_Framework_TestCase { $fs = new Filesystem; - $this->sources = sys_get_temp_dir(). + $this->sources = realpath(sys_get_temp_dir()). '/composer_archiver_test'.uniqid(mt_rand(), true); $fileTree = array(