mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add types to Repository
tests (#10227)
This commit is contained in:
parent
3d9e9ba66f
commit
d51c7685da
15 changed files with 133 additions and 23 deletions
|
@ -24,6 +24,9 @@ class ComposerRepositoryTest extends TestCase
|
|||
{
|
||||
/**
|
||||
* @dataProvider loadDataProvider
|
||||
*
|
||||
* @param mixed[] $expected
|
||||
* @param array<string, mixed> $repoPackages
|
||||
*/
|
||||
public function testLoadData(array $expected, array $repoPackages)
|
||||
{
|
||||
|
@ -161,11 +164,6 @@ class ComposerRepositoryTest extends TestCase
|
|||
$this->assertSame($packages['2'], $packages['2-alias']->getAliasOf());
|
||||
}
|
||||
|
||||
public function isPackageAcceptableReturnTrue()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function testSearchWithType()
|
||||
{
|
||||
$repoConfig = array(
|
||||
|
@ -219,7 +217,7 @@ class ComposerRepositoryTest extends TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @dataProvider canonicalizeUrlProvider
|
||||
* @dataProvider provideCanonicalizeUrlTestCases
|
||||
*
|
||||
* @param string $expected
|
||||
* @param string $url
|
||||
|
@ -249,7 +247,7 @@ class ComposerRepositoryTest extends TestCase
|
|||
$this->assertSame($expected, $method->invoke($repository, $url));
|
||||
}
|
||||
|
||||
public function canonicalizeUrlProvider()
|
||||
public function provideCanonicalizeUrlTestCases()
|
||||
{
|
||||
return array(
|
||||
array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue