1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Add types to Util tests (#10228)

This commit is contained in:
Martin Herndl 2021-10-27 16:18:46 +02:00 committed by GitHub
parent d51c7685da
commit 2992e8651a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 268 additions and 49 deletions

View file

@ -17,7 +17,13 @@ use Composer\Test\TestCase;
class TlsHelperTest extends TestCase
{
/** @dataProvider dataCheckCertificateHost */
/**
* @dataProvider dataCheckCertificateHost
*
* @param bool $expectedResult
* @param string $hostname
* @param string[] $certNames
*/
public function testCheckCertificateHost($expectedResult, $hostname, $certNames)
{
$certificate['subject']['commonName'] = $expectedCn = array_shift($certNames);