Merge remote-tracking branch 'origin/master' into 2.0
commit
2e0f31106a
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Composer.
|
||||
*
|
||||
* (c) Nils Adermann <naderman@naderman.de>
|
||||
* Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Composer\Repository;
|
||||
|
||||
interface VersionCacheInterface
|
||||
{
|
||||
/**
|
||||
* @param string $version
|
||||
* @param string $identifier
|
||||
* @return array Package version data
|
||||
*/
|
||||
public function getVersionPackage($version, $identifier);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Composer.
|
||||
*
|
||||
* (c) Nils Adermann <naderman@naderman.de>
|
||||
* Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Composer\Test;
|
||||
|
||||
use Composer\Factory;
|
||||
|
||||
class FactoryTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @group TLS
|
||||
*/
|
||||
public function testDefaultValuesAreAsExpected()
|
||||
{
|
||||
$ioMock = $this->getMockBuilder('Composer\IO\IOInterface')->getMock();
|
||||
|
||||
$ioMock->expects($this->once())
|
||||
->method("writeError")
|
||||
->with($this->equalTo('<warning>You are running Composer with SSL/TLS protection disabled.</warning>'));
|
||||
|
||||
$config = $this
|
||||
->getMockBuilder('Composer\Config')
|
||||
->getMock();
|
||||
|
||||
$config->method('get')
|
||||
->with($this->equalTo('disable-tls'))
|
||||
->will($this->returnValue(true));
|
||||
|
||||
Factory::createRemoteFilesystem($ioMock, $config);
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
AAAAAAAAA
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue