1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00
This commit is contained in:
Jordi Boggiano 2022-08-17 15:20:07 +03:00 committed by GitHub
parent 6e205a0c84
commit 131da999ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
357 changed files with 5943 additions and 9174 deletions

View file

@ -30,7 +30,7 @@ class RepositoryFactoryTest extends TestCase
$ref->setAccessible(true);
$repositoryClasses = $ref->getValue($manager);
$this->assertEquals(array(
$this->assertEquals([
'composer',
'vcs',
'package',
@ -46,7 +46,7 @@ class RepositoryFactoryTest extends TestCase
'hg',
'artifact',
'path',
), array_keys($repositoryClasses));
], array_keys($repositoryClasses));
}
/**
@ -65,13 +65,13 @@ class RepositoryFactoryTest extends TestCase
public function generateRepositoryNameProvider(): array
{
return array(
array(0, array(), array(), '0'),
array(0, array(), array(array()), '02'),
array(0, array('url' => 'https://example.org'), array(), 'example.org'),
array(0, array('url' => 'https://example.org'), array('example.org' => array()), 'example.org2'),
array('example.org', array('url' => 'https://example.org/repository'), array(), 'example.org'),
array('example.org', array('url' => 'https://example.org/repository'), array('example.org' => array()), 'example.org2'),
);
return [
[0, [], [], '0'],
[0, [], [[]], '02'],
[0, ['url' => 'https://example.org'], [], 'example.org'],
[0, ['url' => 'https://example.org'], ['example.org' => []], 'example.org2'],
['example.org', ['url' => 'https://example.org/repository'], [], 'example.org'],
['example.org', ['url' => 'https://example.org/repository'], ['example.org' => []], 'example.org2'],
];
}
}