mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Merge branch 'master' into 2.0
This commit is contained in:
commit
45ecbae8f5
64 changed files with 377 additions and 612 deletions
|
@ -13,7 +13,7 @@
|
|||
namespace Composer\Test\Util;
|
||||
|
||||
use Composer\Util\RemoteFilesystem;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Composer\Test\TestCase;
|
||||
|
||||
class RemoteFilesystemTest extends TestCase
|
||||
{
|
||||
|
@ -78,6 +78,12 @@ class RemoteFilesystemTest extends TestCase
|
|||
->will($this->returnValue(true))
|
||||
;
|
||||
|
||||
$io
|
||||
->expects($this->once())
|
||||
->method('getAuthentication')
|
||||
->will($this->returnValue(array('username' => null, 'password' => null)))
|
||||
;
|
||||
|
||||
$streamOptions = array('ssl' => array(
|
||||
'allow_self_signed' => true,
|
||||
));
|
||||
|
@ -95,6 +101,12 @@ class RemoteFilesystemTest extends TestCase
|
|||
->will($this->returnValue(true))
|
||||
;
|
||||
|
||||
$io
|
||||
->expects($this->once())
|
||||
->method('getAuthentication')
|
||||
->will($this->returnValue(array('username' => null, 'password' => null)))
|
||||
;
|
||||
|
||||
$streamOptions = array('http' => array(
|
||||
'header' => 'Foo: bar',
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue