coding standard compliance
parent
4b3fc2b5fa
commit
6d5d3af297
|
@ -15,7 +15,8 @@ namespace Composer\Repository;
|
||||||
use Composer\Repository\FilesystemRepository;
|
use Composer\Repository\FilesystemRepository;
|
||||||
use Composer\Test\TestCase;
|
use Composer\Test\TestCase;
|
||||||
|
|
||||||
class PearRepositoryTest extends TestCase {
|
class PearRepositoryTest extends TestCase
|
||||||
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var PearRepository
|
* @var PearRepository
|
||||||
|
@ -32,7 +33,8 @@ class PearRepositoryTest extends TestCase {
|
||||||
* @param string $url
|
* @param string $url
|
||||||
* @param array $expectedPackages
|
* @param array $expectedPackages
|
||||||
*/
|
*/
|
||||||
public function testRepositoryRead($url, array $expectedPackages) {
|
public function testRepositoryRead($url, array $expectedPackages)
|
||||||
|
{
|
||||||
$repoConfig = array(
|
$repoConfig = array(
|
||||||
'url' => $url
|
'url' => $url
|
||||||
);
|
);
|
||||||
|
@ -46,10 +48,10 @@ class PearRepositoryTest extends TestCase {
|
||||||
' not found in pear channel ' . $url
|
' not found in pear channel ' . $url
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function repositoryDataProvider() {
|
public function repositoryDataProvider()
|
||||||
|
{
|
||||||
return array(
|
return array(
|
||||||
array(
|
array(
|
||||||
'pear.phpunit.de',
|
'pear.phpunit.de',
|
||||||
|
@ -103,7 +105,8 @@ class PearRepositoryTest extends TestCase {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function createRepository($repoConfig) {
|
private function createRepository($repoConfig)
|
||||||
|
{
|
||||||
$ioInterface = $this->getMockBuilder('Composer\IO\IOInterface')
|
$ioInterface = $this->getMockBuilder('Composer\IO\IOInterface')
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
|
@ -116,7 +119,8 @@ class PearRepositoryTest extends TestCase {
|
||||||
$this->repository = new PearRepository($repoConfig, $ioInterface, $config, null);
|
$this->repository = new PearRepository($repoConfig, $ioInterface, $config, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function tearDown() {
|
protected function tearDown()
|
||||||
|
{
|
||||||
$this->repository = null;
|
$this->repository = null;
|
||||||
$this->remoteFilesystem = null;
|
$this->remoteFilesystem = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue