From d72a07db06a4f8b00c36ce0d885fb7db9ade54e1 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 22 May 2020 13:28:47 +0200 Subject: [PATCH] Fix tests --- tests/Composer/Test/Downloader/ArchiveDownloaderTest.php | 2 +- tests/Composer/Test/Downloader/FileDownloaderTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Composer/Test/Downloader/ArchiveDownloaderTest.php b/tests/Composer/Test/Downloader/ArchiveDownloaderTest.php index 793c5eab5..977fb6574 100644 --- a/tests/Composer/Test/Downloader/ArchiveDownloaderTest.php +++ b/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')); } diff --git a/tests/Composer/Test/Downloader/FileDownloaderTest.php b/tests/Composer/Test/Downloader/FileDownloaderTest.php index af5a9da11..c86ffa2f7 100644 --- a/tests/Composer/Test/Downloader/FileDownloaderTest.php +++ b/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()