<?php

declare(strict_types=1);

namespace Roave\SignatureTest;

use PHPUnit\Framework\TestCase;
use Roave\Signature\Encoder\Base64Encoder;
use Roave\Signature\FileContentSigner;

/**
 * @covers \Roave\Signature\FileContentSigner
 */
final class FileContentSignerTest extends TestCase
{
    public function signProvider()
    {
        return [
            ['Roave/Signature: PD9waHA=', '<?php'],
            ['Roave/Signature: PD9waHAK', '<?php' . "\n"],
            ['Roave/Signature: PGh0bWw+', '<html>'],
            ['Roave/Signature: cGxhaW4gdGV4dA==', 'plain text'],
        ];
    }

    /**
     * @dataProvider signProvider
     */
    public function testSign($expected, $inputString)
    {
        $signer = new FileContentSigner(new Base64Encoder());

        self::assertSame($expected, $signer->sign($inputString));
    }
}

<?php

declare(strict_types=1);

namespace Roave\SignatureTest;

use PHPUnit\Framework\TestCase;
use Roave\Signature\Encoder\Base64Encoder;
use Roave\Signature\FileContentSigner;

/**
 * @covers \Roave\Signature\FileContentSigner
 */
final class FileContentSignerTest extends TestCase
{
    /**
     * @return string[][]
     */
    public function signProvider(): array
    {
        return [
            ['Roave/Signature: PD9waHA=', '<?php'],
            ['Roave/Signature: PD9waHAK', '<?php' . "\n"],
            ['Roave/Signature: PGh0bWw+', '<html>'],
            ['Roave/Signature: cGxhaW4gdGV4dA==', 'plain text'],
        ];
    }

    /**
     * @dataProvider signProvider
     */
    public function testSign(string $expected, string $inputString)
    {
        $signer = new FileContentSigner(new Base64Encoder());

        self::assertSame($expected, $signer->sign($inputString));
    }
}

Add missing doc block type and type hint
Add missing doc block type and type hint
