浏览代码

Test fix, fixes #274

Jordi Boggiano 13 年之前
父节点
当前提交
d18e749f85
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tests/Composer/Test/Autoload/AutoloadGeneratorTest.php

+ 3 - 0
tests/Composer/Test/Autoload/AutoloadGeneratorTest.php

@@ -88,6 +88,9 @@ class AutoloadGeneratorTest extends \PHPUnit_Framework_TestCase
             ->method('getPackages')
             ->will($this->returnValue(array()));
 
+        if (!is_dir($this->vendorDir.'/.composer')) {
+            mkdir($this->vendorDir.'/.composer', 0777, true);
+        }
         $this->generator->dump($this->repo, $package, $this->im, $this->vendorDir.'/.composer');
         $this->assertAutoloadFiles('main3', $this->vendorDir.'/.composer');
     }