Commit cd1118b1 authored by Guillaume Perréal's avatar Guillaume Perréal

Typo.

parent 394d6542
Pipeline #10066 passed with stages
in 44 seconds
<?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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment