1
0
Fork 0

coding standard compliance

pull/658/head
Bastian Hofmann 2012-05-06 14:55:08 +02:00
parent 4b3fc2b5fa
commit 6d5d3af297
1 changed files with 10 additions and 6 deletions

View File

@ -15,7 +15,8 @@ namespace Composer\Repository;
use Composer\Repository\FilesystemRepository;
use Composer\Test\TestCase;
class PearRepositoryTest extends TestCase {
class PearRepositoryTest extends TestCase
{
/**
* @var PearRepository
@ -32,7 +33,8 @@ class PearRepositoryTest extends TestCase {
* @param string $url
* @param array $expectedPackages
*/
public function testRepositoryRead($url, array $expectedPackages) {
public function testRepositoryRead($url, array $expectedPackages)
{
$repoConfig = array(
'url' => $url
);
@ -46,10 +48,10 @@ class PearRepositoryTest extends TestCase {
' not found in pear channel ' . $url
);
}
}
public function repositoryDataProvider() {
public function repositoryDataProvider()
{
return array(
array(
'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')
->getMock();
@ -116,7 +119,8 @@ class PearRepositoryTest extends TestCase {
$this->repository = new PearRepository($repoConfig, $ioInterface, $config, null);
}
protected function tearDown() {
protected function tearDown()
{
$this->repository = null;
$this->remoteFilesystem = null;
}