浏览代码

Fix tests

Jordi Boggiano 12 年之前
父节点
当前提交
7f2b321044
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tests/Composer/Test/Downloader/ZipDownloaderTest.php

+ 4 - 0
tests/Composer/Test/Downloader/ZipDownloaderTest.php

@@ -33,6 +33,10 @@ class ZipDownloaderTest extends \PHPUnit_Framework_TestCase
 
 
         $io = $this->getMock('Composer\IO\IOInterface');
         $io = $this->getMock('Composer\IO\IOInterface');
         $config = $this->getMock('Composer\Config');
         $config = $this->getMock('Composer\Config');
+        $config->expects($this->once())
+            ->method('get')
+            ->with('vendor-dir')
+            ->will($this->returnValue(sys_get_temp_dir().'/composer-zip-test-vendor'));
         $downloader = new ZipDownloader($io, $config);
         $downloader = new ZipDownloader($io, $config);
 
 
         try {
         try {