diff --git a/tests/HeaderComment/SPDXLicenseTemplateProviderTest.php b/tests/HeaderComment/SPDXLicenseTemplateProviderTest.php index 1943b4fc1017916470ee19df5746019a9d7f2c7b..89db023cdc35d3dbb79bccdc29ab3a1e09ee298c 100644 --- a/tests/HeaderComment/SPDXLicenseTemplateProviderTest.php +++ b/tests/HeaderComment/SPDXLicenseTemplateProviderTest.php @@ -1,10 +1,11 @@ <?php declare(strict_types=1); -/** - * Copyright (C) 2020 IRSTEA - * All rights reserved. +/* + * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer. + * Copyright (C) 2018-2020 IRSTEA + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. * - * @copyright 2020 IRSTEA - * @author guillaume.perreal */ namespace Irstea\CS\Tests\HeaderComment; @@ -17,7 +18,7 @@ use PHPUnit\Framework\TestCase; use Prophecy\Prophecy\ObjectProphecy; /** - * Class SPDXLicenseTemplateProviderTest + * Class SPDXLicenseTemplateProviderTest. */ final class SPDXLicenseTemplateProviderTest extends TestCase { @@ -36,20 +37,20 @@ final class SPDXLicenseTemplateProviderTest extends TestCase */ private $templateProvider; - protected function setUp() + protected function setUp(): void { $this->root = vfsStream::setup('licenses'); $this->composerPackage = $this->prophesize(ComposerPackageInterface::class); $this->templateProvider = new SPDXLicenseTemplateProvider( - $this->composerPackage->reveal() - $this->root->url(). '/%s.json' + $this->composerPackage->reveal(), + $this->root->url() . '/%s.json' ); } - public function testKnownLicense() { - + public function testKnownLicense(): void + { $this->composerPackage->getLicenses() ->shouldBeCalled() ->willReturn(['foo']); @@ -61,8 +62,8 @@ final class SPDXLicenseTemplateProviderTest extends TestCase self::assertEquals('bar', $result); } - public function testUnknownLicense() { - + public function testUnknownLicense(): void + { $this->composerPackage->getLicenses() ->shouldBeCalled() ->willReturn(['foo']); @@ -72,8 +73,8 @@ final class SPDXLicenseTemplateProviderTest extends TestCase self::assertNull($result); } - public function testInvalidJSON() { - + public function testInvalidJSON(): void + { $this->composerPackage->getLicenses() ->shouldBeCalled() ->willReturn(['foo']); @@ -84,5 +85,4 @@ final class SPDXLicenseTemplateProviderTest extends TestCase self::assertNull($result); } - }