Skip to content

Commit

Permalink
PHPStan & PHP CS Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
simivar committed Oct 23, 2020
1 parent b94f12a commit efd858a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/APITestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
namespace Riot\Tests;

use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface;
use Riot\API\ResponseDecoderInterface;
use Riot\ConnectionInterface;

Expand Down
15 changes: 15 additions & 0 deletions tests/Unit/API/ResponseDecoderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public function testGetBodyContentsDecodedAsArrayProperlyDecodesData(): void

/**
* @dataProvider provideNonArrayValues
*
* @param mixed $value
*/
public function testGetBodyContentsDecodedAsArrayThrowsExceptionOnNonArray($value): void
{
Expand Down Expand Up @@ -76,6 +78,8 @@ public function testGetBodyContentsDecodedAsIntProperlyDecodesData(): void

/**
* @dataProvider provideNonIntValues
*
* @param mixed $value
*/
public function testGetBodyContentsDecodedAsIntThrowsExceptionOnNonInt($value): void
{
Expand Down Expand Up @@ -118,6 +122,8 @@ public function testGetBodyContentsDecodedAsStringProperlyDecodesData(): void

/**
* @dataProvider provideNonStringValues
*
* @param mixed $value
*/
public function testGetBodyContentsDecodedAsStringThrowsErrorOnNonString($value): void
{
Expand All @@ -139,6 +145,9 @@ public function testGetBodyContentsDecodedAsStringThrowsErrorOnNonString($value)
$decoder->getBodyContentsDecodedAsString();
}

/**
* @return string[][]
*/
public function provideNonStringValues(): array
{
return [
Expand All @@ -149,6 +158,9 @@ public function provideNonStringValues(): array
];
}

/**
* @return string[][]
*/
public function provideNonIntValues(): array
{
return [
Expand All @@ -159,6 +171,9 @@ public function provideNonIntValues(): array
];
}

/**
* @return string[][]
*/
public function provideNonArrayValues(): array
{
return [
Expand Down

0 comments on commit efd858a

Please sign in to comment.