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

Typo.

No related merge requests found
Showing with 16 additions and 16 deletions
+16 -16
<?php declare(strict_types=1); <?php declare(strict_types=1);
/** /*
* Copyright (C) 2020 IRSTEA * irstea/php-cs-fixer-config - Jeux de règles pour php-cs-fixer.
* All rights reserved. * 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; namespace Irstea\CS\Tests\HeaderComment;
...@@ -17,7 +18,7 @@ use PHPUnit\Framework\TestCase; ...@@ -17,7 +18,7 @@ use PHPUnit\Framework\TestCase;
use Prophecy\Prophecy\ObjectProphecy; use Prophecy\Prophecy\ObjectProphecy;
/** /**
* Class SPDXLicenseTemplateProviderTest * Class SPDXLicenseTemplateProviderTest.
*/ */
final class SPDXLicenseTemplateProviderTest extends TestCase final class SPDXLicenseTemplateProviderTest extends TestCase
{ {
...@@ -36,20 +37,20 @@ final class SPDXLicenseTemplateProviderTest extends TestCase ...@@ -36,20 +37,20 @@ final class SPDXLicenseTemplateProviderTest extends TestCase
*/ */
private $templateProvider; private $templateProvider;
protected function setUp() protected function setUp(): void
{ {
$this->root = vfsStream::setup('licenses'); $this->root = vfsStream::setup('licenses');
$this->composerPackage = $this->prophesize(ComposerPackageInterface::class); $this->composerPackage = $this->prophesize(ComposerPackageInterface::class);
$this->templateProvider = new SPDXLicenseTemplateProvider( $this->templateProvider = new SPDXLicenseTemplateProvider(
$this->composerPackage->reveal() $this->composerPackage->reveal(),
$this->root->url(). '/%s.json' $this->root->url() . '/%s.json'
); );
} }
public function testKnownLicense() { public function testKnownLicense(): void
{
$this->composerPackage->getLicenses() $this->composerPackage->getLicenses()
->shouldBeCalled() ->shouldBeCalled()
->willReturn(['foo']); ->willReturn(['foo']);
...@@ -61,8 +62,8 @@ final class SPDXLicenseTemplateProviderTest extends TestCase ...@@ -61,8 +62,8 @@ final class SPDXLicenseTemplateProviderTest extends TestCase
self::assertEquals('bar', $result); self::assertEquals('bar', $result);
} }
public function testUnknownLicense() { public function testUnknownLicense(): void
{
$this->composerPackage->getLicenses() $this->composerPackage->getLicenses()
->shouldBeCalled() ->shouldBeCalled()
->willReturn(['foo']); ->willReturn(['foo']);
...@@ -72,8 +73,8 @@ final class SPDXLicenseTemplateProviderTest extends TestCase ...@@ -72,8 +73,8 @@ final class SPDXLicenseTemplateProviderTest extends TestCase
self::assertNull($result); self::assertNull($result);
} }
public function testInvalidJSON() { public function testInvalidJSON(): void
{
$this->composerPackage->getLicenses() $this->composerPackage->getLicenses()
->shouldBeCalled() ->shouldBeCalled()
->willReturn(['foo']); ->willReturn(['foo']);
...@@ -84,5 +85,4 @@ final class SPDXLicenseTemplateProviderTest extends TestCase ...@@ -84,5 +85,4 @@ final class SPDXLicenseTemplateProviderTest extends TestCase
self::assertNull($result); self::assertNull($result);
} }
} }
Supports Markdown
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