1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add types to Package tests (#10245)

This commit is contained in:
Martin Herndl 2021-11-01 21:44:12 +01:00 committed by GitHub
parent a155c076db
commit bcbd8fdb61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 159 additions and 21 deletions

View file

@ -44,14 +44,17 @@ class BasePackageTest extends TestCase
}
/**
* @dataProvider formattedVersions
* @dataProvider provideFormattedVersions
*
* @param bool $truncate
* @param string $expected
*/
public function testFormatVersionForDevPackage(BasePackage $package, $truncate, $expected)
{
$this->assertSame($expected, $package->getFullPrettyVersion($truncate));
}
public function formattedVersions()
public function provideFormattedVersions()
{
$data = array(
array(