1
0
Fork 0
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:
Jordi Boggiano 2020-02-07 22:20:51 +01:00
commit 45ecbae8f5
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
64 changed files with 377 additions and 612 deletions

View file

@ -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',
));