Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
Fix: Run 'make coding-standards'
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Oct 23, 2020
1 parent 92168eb commit 07c4513
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 120 deletions.
2 changes: 0 additions & 2 deletions src/Exception/InvalidExcludeClassName.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ final class InvalidExcludeClassName extends \InvalidArgumentException
{
/**
* @param mixed $className
*
* @return self
*/
public static function fromClassName($className): self
{
Expand Down
47 changes: 0 additions & 47 deletions src/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ trait Helper
* Useful for generating fake data in tests.
*
* @see https://github.com/fzaninotto/Faker
*
* @param string $locale
*
* @return Generator
*/
final protected static function faker(string $locale = 'en_US'): Generator
{
Expand Down Expand Up @@ -58,7 +54,6 @@ final protected static function faker(string $locale = 'en_US'): Generator
*
* @psalm-param array<class-string> $excludeClassNames
*
* @param string $directory
* @param array<string> $excludeClassNames
*
* @throws Exception\NonExistentDirectory
Expand Down Expand Up @@ -90,9 +85,6 @@ static function (string $className): bool {
* @phpstam-param array<class-string> $excludeClassyNames
* @psalm-param array<class-string> $excludeClassyNames
*
* @param string $directory
* @param string $namespace
* @param string $testNamespace
* @param array<string> $excludeClassyNames
*
* @throws Exception\NonExistentDirectory
Expand Down Expand Up @@ -198,10 +190,7 @@ final protected static function assertClassesHaveTests(string $directory, string
*
* @psalm-param array<class-string> $excludeClassyNames
*
* @param callable $specification
* @param string $directory
* @param array<string> $excludeClassyNames
* @param string $message
*
* @throws Exception\NonExistentDirectory
* @throws Exception\InvalidExcludeClassName
Expand Down Expand Up @@ -243,8 +232,6 @@ final protected static function assertClassyConstructsSatisfySpecification(calla

/**
* Asserts that a class exists.
*
* @param string $className
*/
final protected static function assertClassExists(string $className): void
{
Expand All @@ -262,9 +249,6 @@ final protected static function assertClassExists(string $className): void
*
* @psalm-param class-string $parentClassName
* @psalm-param class-string $className
*
* @param string $parentClassName
* @param string $className
*/
final protected static function assertClassExtends(string $parentClassName, string $className): void
{
Expand All @@ -289,9 +273,6 @@ final protected static function assertClassExtends(string $parentClassName, stri
*
* @psalm-param class-string $interfaceName
* @psalm-param class-string $className
*
* @param string $interfaceName
* @param string $className
*/
final protected static function assertClassImplementsInterface(string $interfaceName, string $className): void
{
Expand All @@ -314,8 +295,6 @@ final protected static function assertClassImplementsInterface(string $interface
* @phpstan-param class-string $className
*
* @psalm-param class-string $className
*
* @param string $className
*/
final protected static function assertClassIsAbstract(string $className): void
{
Expand All @@ -338,8 +317,6 @@ final protected static function assertClassIsAbstract(string $className): void
* @phpstan-param class-string $className
*
* @psalm-param class-string $className
*
* @param string $className
*/
final protected static function assertClassIsFinal(string $className): void
{
Expand All @@ -363,10 +340,6 @@ final protected static function assertClassIsFinal(string $className): void
*
* @psalm-param callable(class-string):bool $specification
* @psalm-param class-string $className
*
* @param callable $specification
* @param string $className
* @param string $message
*/
final protected static function assertClassSatisfiesSpecification(callable $specification, string $className, string $message = ''): void
{
Expand All @@ -386,9 +359,6 @@ final protected static function assertClassSatisfiesSpecification(callable $spec
*
* @psalm-param class-string $traitName
* @psalm-param class-string $className
*
* @param string $traitName
* @param string $className
*/
final protected static function assertClassUsesTrait(string $traitName, string $className): void
{
Expand All @@ -404,8 +374,6 @@ final protected static function assertClassUsesTrait(string $traitName, string $

/**
* Asserts that an interface exists.
*
* @param string $interfaceName
*/
final protected static function assertInterfaceExists(string $interfaceName): void
{
Expand All @@ -423,9 +391,6 @@ final protected static function assertInterfaceExists(string $interfaceName): vo
*
* @psalm-param class-string $parentInterfaceName
* @psalm-param class-string $interfaceName
*
* @param string $parentInterfaceName
* @param string $interfaceName
*/
final protected static function assertInterfaceExtends(string $parentInterfaceName, string $interfaceName): void
{
Expand All @@ -451,10 +416,6 @@ final protected static function assertInterfaceExtends(string $parentInterfaceNa
*
* @psalm-param callable(class-string):bool $specification
* @psalm-param class-string $interfaceName
*
* @param callable $specification
* @param string $interfaceName
* @param string $message
*/
final protected static function assertInterfaceSatisfiesSpecification(callable $specification, string $interfaceName, string $message = ''): void
{
Expand All @@ -468,8 +429,6 @@ final protected static function assertInterfaceSatisfiesSpecification(callable $

/**
* Asserts that a trait exists.
*
* @param string $traitName
*/
final protected static function assertTraitExists(string $traitName): void
{
Expand All @@ -488,10 +447,6 @@ final protected static function assertTraitExists(string $traitName): void
*
* @psalm-param callable(class-string):bool $specification
* @psalm-param class-string $traitName
*
* @param callable $specification
* @param string $traitName
* @param string $message
*/
final protected static function assertTraitSatisfiesSpecification(callable $specification, string $traitName, string $message = ''): void
{
Expand Down Expand Up @@ -525,7 +480,6 @@ final protected static function provideDataForValues(array $values): \Generator

/**
* @param array<string, mixed> $values
* @param \Closure $test
*
* @throws Exception\EmptyValues
*
Expand All @@ -550,7 +504,6 @@ final protected static function provideDataForValuesWhere(array $values, \Closur

/**
* @param array<string, mixed> $values
* @param \Closure $test
*
* @throws Exception\EmptyValues
*
Expand Down
6 changes: 0 additions & 6 deletions test/Unit/DataProvider/AbstractProviderTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,11 @@ final protected static function assertProvidesDataSetsForValuesSatisfyingSpecifi
));
}

/**
* @param array $actual
*/
final protected static function assertDataSetsAreNotEmpty(array $actual): void
{
self::assertNotEmpty($actual, 'Failed asserting that provided data sets are not empty.');
}

/**
* @param array $values
*/
private static function assertExpectedValuesAreNotEmpty(array $values): void
{
self::assertNotEmpty($values, 'Failed asserting that expected values are not empty.');
Expand Down
10 changes: 0 additions & 10 deletions test/Unit/DataProvider/FloatProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ public function testArbitraryReturnsGeneratorThatProvidesFloatValues(): void

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\FloatProvider::lessThanZero()
*
* @param float $value
*/
public function testLessThanZeroProvidesFloatLessThanZero(float $value): void
{
Expand All @@ -78,8 +76,6 @@ public function testLessThanZeroReturnsGeneratorThatProvidesFloatLessThanZero():

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\FloatProvider::zero()
*
* @param float $value
*/
public function testZeroProvidesZero(float $value): void
{
Expand All @@ -99,8 +95,6 @@ public function testZeroReturnsGeneratorThatProvidesZero(): void

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\FloatProvider::greaterThanZero()
*
* @param float $value
*/
public function testGreaterThanZeroProvidesFloatGreaterThanZero(float $value): void
{
Expand All @@ -123,8 +117,6 @@ public function testGreaterThanZeroReturnsGeneratorThatProvidesFloatGreaterThanZ

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\FloatProvider::lessThanOne()
*
* @param float $value
*/
public function testLessThanOneProvidesFloatLessThanOne(float $value): void
{
Expand Down Expand Up @@ -159,8 +151,6 @@ public function testOneReturnsGeneratorThatProvidesOne(): void

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\FloatProvider::greaterThanOne()
*
* @param float $value
*/
public function testGreaterThanOneProvidesFloatGreaterThanOne(float $value): void
{
Expand Down
10 changes: 0 additions & 10 deletions test/Unit/DataProvider/IntProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ public function testArbitraryReturnsGeneratorThatProvidesIntValues(): void

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::lessThanZero()
*
* @param int $value
*/
public function testLessThanZeroProvidesIntLessThanZero(int $value): void
{
Expand All @@ -78,8 +76,6 @@ public function testLessThanZeroReturnsGeneratorThatProvidesIntLessThanZero(): v

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::zero()
*
* @param int $value
*/
public function testZeroProvidesZero(int $value): void
{
Expand All @@ -99,8 +95,6 @@ public function testZeroReturnsGeneratorThatProvidesZero(): void

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::greaterThanZero()
*
* @param int $value
*/
public function testGreaterThanZeroProvidesIntGreaterThanZero(int $value): void
{
Expand All @@ -123,8 +117,6 @@ public function testGreaterThanZeroReturnsGeneratorThatProvidesIntGreaterThanZer

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::lessThanOne()
*
* @param int $value
*/
public function testLessThanOneProvidesIntLessThanOne(int $value): void
{
Expand Down Expand Up @@ -159,8 +151,6 @@ public function testOneReturnsGeneratorThatProvidesOne(): void

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\IntProvider::greaterThanOne()
*
* @param int $value
*/
public function testGreaterThanOneProvidesIntGreaterThanOne(int $value): void
{
Expand Down
6 changes: 0 additions & 6 deletions test/Unit/DataProvider/StringProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ public function testArbitraryReturnsGeneratorThatProvidesStringsThatAreNeitherEm

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\StringProvider::blank()
*
* @param string $value
*/
public function testBlankProvidesBlankString(string $value): void
{
Expand All @@ -85,8 +83,6 @@ public function testBlankReturnsGeneratorThatProvidesStringsThatAreNeitherEmptyN

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\StringProvider::empty()
*
* @param string $value
*/
public function testEmptyProvidesEmptyString(string $value): void
{
Expand All @@ -106,8 +102,6 @@ public function testEmptyReturnsGeneratorThatProvidesAnEmptyString(): void

/**
* @dataProvider \Ergebnis\Test\Util\DataProvider\StringProvider::untrimmed()
*
* @param string $value
*/
public function testUntrimmedProvidesUntrimmedString(string $value): void
{
Expand Down
Loading

0 comments on commit 07c4513

Please sign in to comment.