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

Finalize phpstan level 6 for tests dir, closes #10159

This commit is contained in:
Jordi Boggiano 2021-11-02 14:32:09 +01:00
parent a86046f9e4
commit cb0293cf30
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
20 changed files with 136 additions and 17 deletions

View file

@ -62,6 +62,9 @@ class InstalledVersionsTest extends TestCase
/**
* @dataProvider isInstalledProvider
* @param bool $expected
* @param string $name
* @param bool $includeDevRequirements
*/
public function testIsInstalled($expected, $name, $includeDevRequirements = true)
{
@ -84,6 +87,9 @@ class InstalledVersionsTest extends TestCase
/**
* @dataProvider satisfiesProvider
* @param bool $expected
* @param string $name
* @param string $constraint
*/
public function testSatisfies($expected, $name, $constraint)
{
@ -122,6 +128,8 @@ class InstalledVersionsTest extends TestCase
/**
* @dataProvider getVersionRangesProvider
* @param string $expected
* @param string $name
*/
public function testGetVersionRanges($expected, $name)
{
@ -144,6 +152,8 @@ class InstalledVersionsTest extends TestCase
/**
* @dataProvider getVersionProvider
* @param ?string $expected
* @param string $name
*/
public function testGetVersion($expected, $name)
{
@ -166,6 +176,8 @@ class InstalledVersionsTest extends TestCase
/**
* @dataProvider getPrettyVersionProvider
* @param ?string $expected
* @param string $name
*/
public function testGetPrettyVersion($expected, $name)
{
@ -219,6 +231,8 @@ class InstalledVersionsTest extends TestCase
/**
* @dataProvider getReferenceProvider
* @param ?string $expected
* @param string $name
*/
public function testGetReference($expected, $name)
{