From e6f1c13d00961bfc17bfb0d1289a9b288eb0bbd9 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 10 Jan 2016 20:45:40 +0000 Subject: [PATCH] xz test tweak --- tests/Composer/Test/Downloader/XzDownloaderTest.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/Composer/Test/Downloader/XzDownloaderTest.php b/tests/Composer/Test/Downloader/XzDownloaderTest.php index 2544ab938..a71516821 100644 --- a/tests/Composer/Test/Downloader/XzDownloaderTest.php +++ b/tests/Composer/Test/Downloader/XzDownloaderTest.php @@ -14,6 +14,7 @@ namespace Composer\Test\Downloader; use Composer\Downloader\XzDownloader; use Composer\Util\Filesystem; +use Composer\Util\RemoteFilesystem; class XzDownloaderTest extends \PHPUnit_Framework_TestCase { @@ -63,11 +64,7 @@ class XzDownloaderTest extends \PHPUnit_Framework_TestCase ->method('get') ->with('vendor-dir') ->will($this->returnValue($this->testDir)); - $config->expects($this->any()) - ->method('get') - ->with('disable-tls') - ->will($this->returnValue(false)); - $downloader = new XzDownloader($io, $config); + $downloader = new XzDownloader($io, $config, null, null, null, new RemoteFilesystem($io)); try { $downloader->download($packageMock, sys_get_temp_dir().'/composer-xz-test');