Skip to content

Commit

Permalink
Fix: Order
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Oct 10, 2023
1 parent f765c1d commit 775fae1
Show file tree
Hide file tree
Showing 13 changed files with 111 additions and 111 deletions.
6 changes: 3 additions & 3 deletions test/Unit/RuleSet/AbstractRuleSetTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ final public function testDefaults(): void

self::assertEquals($this->expectedCustomFixers(), $ruleSet->customFixers());
self::assertEquals($this->expectedName(), $ruleSet->name());
self::assertEquals($this->expectedRules(), $ruleSet->rules());
self::assertEquals($this->expectedPhpVersion(), $ruleSet->phpVersion());
self::assertEquals($this->expectedRules(), $ruleSet->rules());
}

final public function testRuleSetDoesNotConfigureRulesThatAreNotRegistered(): void
Expand Down Expand Up @@ -184,10 +184,10 @@ abstract protected function expectedCustomFixers(): Fixers;

abstract protected function expectedName(): Name;

abstract protected function expectedRules(): Rules;

abstract protected function expectedPhpVersion(): PhpVersion;

abstract protected function expectedRules(): Rules;

/**
* @throws \RuntimeException
*/
Expand Down
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/Php53Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ protected function expectedName(): Name
return Name::fromString('ergebnis (PHP 5.3)');
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(5),
PhpVersion\Minor::fromInt(3),
PhpVersion\Patch::fromInt(0),
);
}

protected function expectedRules(): Rules
{
return Rules::fromArray([
Expand Down Expand Up @@ -855,13 +864,4 @@ protected function expectedRules(): Rules
],
]);
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(5),
PhpVersion\Minor::fromInt(3),
PhpVersion\Patch::fromInt(0),
);
}
}
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/Php54Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ protected function expectedName(): Name
return Name::fromString('ergebnis (PHP 5.4)');
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(5),
PhpVersion\Minor::fromInt(4),
PhpVersion\Patch::fromInt(0),
);
}

protected function expectedRules(): Rules
{
return Rules::fromArray([
Expand Down Expand Up @@ -857,13 +866,4 @@ protected function expectedRules(): Rules
],
]);
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(5),
PhpVersion\Minor::fromInt(4),
PhpVersion\Patch::fromInt(0),
);
}
}
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/Php55Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ protected function expectedName(): Name
return Name::fromString('ergebnis (PHP 5.5)');
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(5),
PhpVersion\Minor::fromInt(5),
PhpVersion\Patch::fromInt(0),
);
}

protected function expectedRules(): Rules
{
return Rules::fromArray([
Expand Down Expand Up @@ -866,13 +875,4 @@ protected function expectedRules(): Rules
],
]);
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(5),
PhpVersion\Minor::fromInt(5),
PhpVersion\Patch::fromInt(0),
);
}
}
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/Php56Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ protected function expectedName(): Name
return Name::fromString('ergebnis (PHP 5.6)');
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(5),
PhpVersion\Minor::fromInt(6),
PhpVersion\Patch::fromInt(0),
);
}

protected function expectedRules(): Rules
{
return Rules::fromArray([
Expand Down Expand Up @@ -866,13 +875,4 @@ protected function expectedRules(): Rules
],
]);
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(5),
PhpVersion\Minor::fromInt(6),
PhpVersion\Patch::fromInt(0),
);
}
}
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/Php70Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ protected function expectedName(): Name
return Name::fromString('ergebnis (PHP 7.0)');
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(7),
PhpVersion\Minor::fromInt(0),
PhpVersion\Patch::fromInt(0),
);
}

protected function expectedRules(): Rules
{
return Rules::fromArray([
Expand Down Expand Up @@ -866,13 +875,4 @@ protected function expectedRules(): Rules
],
]);
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(7),
PhpVersion\Minor::fromInt(0),
PhpVersion\Patch::fromInt(0),
);
}
}
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/Php71Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ protected function expectedName(): Name
return Name::fromString('ergebnis (PHP 7.1)');
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(7),
PhpVersion\Minor::fromInt(1),
PhpVersion\Patch::fromInt(0),
);
}

protected function expectedRules(): Rules
{
return Rules::fromArray([
Expand Down Expand Up @@ -869,13 +878,4 @@ protected function expectedRules(): Rules
],
]);
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(7),
PhpVersion\Minor::fromInt(1),
PhpVersion\Patch::fromInt(0),
);
}
}
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/Php72Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ protected function expectedName(): Name
return Name::fromString('ergebnis (PHP 7.2)');
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(7),
PhpVersion\Minor::fromInt(2),
PhpVersion\Patch::fromInt(0),
);
}

protected function expectedRules(): Rules
{
return Rules::fromArray([
Expand Down Expand Up @@ -869,13 +878,4 @@ protected function expectedRules(): Rules
],
]);
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(7),
PhpVersion\Minor::fromInt(2),
PhpVersion\Patch::fromInt(0),
);
}
}
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/Php73Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ protected function expectedName(): Name
return Name::fromString('ergebnis (PHP 7.3)');
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(7),
PhpVersion\Minor::fromInt(3),
PhpVersion\Patch::fromInt(0),
);
}

protected function expectedRules(): Rules
{
return Rules::fromArray([
Expand Down Expand Up @@ -870,13 +879,4 @@ protected function expectedRules(): Rules
],
]);
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(7),
PhpVersion\Minor::fromInt(3),
PhpVersion\Patch::fromInt(0),
);
}
}
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ protected function expectedName(): Name
return Name::fromString('ergebnis (PHP 7.4)');
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(7),
PhpVersion\Minor::fromInt(4),
PhpVersion\Patch::fromInt(0),
);
}

protected function expectedRules(): Rules
{
return Rules::fromArray([
Expand Down Expand Up @@ -873,13 +882,4 @@ protected function expectedRules(): Rules
],
]);
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(7),
PhpVersion\Minor::fromInt(4),
PhpVersion\Patch::fromInt(0),
);
}
}
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ protected function expectedName(): Name
return Name::fromString('ergebnis (PHP 8.0)');
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(8),
PhpVersion\Minor::fromInt(0),
PhpVersion\Patch::fromInt(0),
);
}

protected function expectedRules(): Rules
{
return Rules::fromArray([
Expand Down Expand Up @@ -884,13 +893,4 @@ protected function expectedRules(): Rules
],
]);
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(8),
PhpVersion\Minor::fromInt(0),
PhpVersion\Patch::fromInt(0),
);
}
}
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ protected function expectedName(): Name
return Name::fromString('ergebnis (PHP 8.1)');
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(8),
PhpVersion\Minor::fromInt(1),
PhpVersion\Patch::fromInt(0),
);
}

protected function expectedRules(): Rules
{
return Rules::fromArray([
Expand Down Expand Up @@ -886,13 +895,4 @@ protected function expectedRules(): Rules
],
]);
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(8),
PhpVersion\Minor::fromInt(1),
PhpVersion\Patch::fromInt(0),
);
}
}
18 changes: 9 additions & 9 deletions test/Unit/RuleSet/Php82Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ protected function expectedName(): Name
return Name::fromString('ergebnis (PHP 8.2)');
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(8),
PhpVersion\Minor::fromInt(2),
PhpVersion\Patch::fromInt(0),
);
}

protected function expectedRules(): Rules
{
return Rules::fromArray([
Expand Down Expand Up @@ -886,13 +895,4 @@ protected function expectedRules(): Rules
],
]);
}

protected function expectedPhpVersion(): PhpVersion
{
return PhpVersion::create(
PhpVersion\Major::fromInt(8),
PhpVersion\Minor::fromInt(2),
PhpVersion\Patch::fromInt(0),
);
}
}

0 comments on commit 775fae1

Please sign in to comment.