xz test tweak
parent
d2e97eecb2
commit
e6f1c13d00
|
@ -14,6 +14,7 @@ namespace Composer\Test\Downloader;
|
||||||
|
|
||||||
use Composer\Downloader\XzDownloader;
|
use Composer\Downloader\XzDownloader;
|
||||||
use Composer\Util\Filesystem;
|
use Composer\Util\Filesystem;
|
||||||
|
use Composer\Util\RemoteFilesystem;
|
||||||
|
|
||||||
class XzDownloaderTest extends \PHPUnit_Framework_TestCase
|
class XzDownloaderTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
@ -63,11 +64,7 @@ class XzDownloaderTest extends \PHPUnit_Framework_TestCase
|
||||||
->method('get')
|
->method('get')
|
||||||
->with('vendor-dir')
|
->with('vendor-dir')
|
||||||
->will($this->returnValue($this->testDir));
|
->will($this->returnValue($this->testDir));
|
||||||
$config->expects($this->any())
|
$downloader = new XzDownloader($io, $config, null, null, null, new RemoteFilesystem($io));
|
||||||
->method('get')
|
|
||||||
->with('disable-tls')
|
|
||||||
->will($this->returnValue(false));
|
|
||||||
$downloader = new XzDownloader($io, $config);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$downloader->download($packageMock, sys_get_temp_dir().'/composer-xz-test');
|
$downloader->download($packageMock, sys_get_temp_dir().'/composer-xz-test');
|
||||||
|
|
Loading…
Reference in New Issue