소스 검색

Fix tests

Jordi Boggiano 5 년 전
부모
커밋
d72a07db06
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      tests/Composer/Test/Downloader/ArchiveDownloaderTest.php
  2. 1 1
      tests/Composer/Test/Downloader/FileDownloaderTest.php

+ 1 - 1
tests/Composer/Test/Downloader/ArchiveDownloaderTest.php

@@ -36,7 +36,7 @@ class ArchiveDownloaderTest extends TestCase
             ->will($this->returnValue('/vendor'));
 
         $first = $method->invoke($downloader, $packageMock, '/path');
-        $this->assertRegExp('#/vendor/composer/[a-z0-9]+\.js#', $first);
+        $this->assertRegExp('#/vendor/composer/tmp-[a-z0-9]+\.js#', $first);
         $this->assertSame($first, $method->invoke($downloader, $packageMock, '/path'));
     }
 

+ 1 - 1
tests/Composer/Test/Downloader/FileDownloaderTest.php

@@ -99,7 +99,7 @@ class FileDownloaderTest extends TestCase
             ->with('vendor-dir')
             ->will($this->returnValue('/vendor'));
 
-        $this->assertRegExp('#/vendor/composer/[a-z0-9]+\.js#', $method->invoke($downloader, $packageMock, '/path'));
+        $this->assertRegExp('#/vendor/composer/tmp-[a-z0-9]+\.js#', $method->invoke($downloader, $packageMock, '/path'));
     }
 
     public function testDownloadButFileIsUnsaved()