mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add Gzip handling to RemoteFilesystem
This commit is contained in:
parent
7f65dd7409
commit
f98bd971f2
3 changed files with 35 additions and 13 deletions
|
@ -31,7 +31,8 @@ class RemoteFilesystemTest extends \PHPUnit_Framework_TestCase
|
|||
->will($this->returnValue(null))
|
||||
;
|
||||
|
||||
$this->assertEquals(array(), $this->callGetOptionsForUrl($io, array('http://example.org')));
|
||||
$res = $this->callGetOptionsForUrl($io, array('http://example.org'));
|
||||
$this->assertTrue(isset($res['http']['header']) && false !== strpos($res['http']['header'], 'User-Agent'), 'getOptions must return an array with a header containing a User-Agent');
|
||||
}
|
||||
|
||||
public function testGetOptionsForUrlWithAuthorization()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue