Преглед изворни кода

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().
Reto Kaiser пре 12 година
родитељ
комит
918a55659e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php

+ 1 - 1
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(