Skip to content

Commit

Permalink
DX: improve test method names to avoid confusion (#6974)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos committed May 19, 2023
1 parent 3ce71b0 commit 96d8856
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/Fixer/Basic/BracesFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4125,16 +4125,16 @@ public static function provideFunctionImportCases(): iterable
/**
* @param array<string, mixed> $configuration
*
* @dataProvider provideFix70Cases
* @dataProvider provideFixCases
*/
public function testFix70(string $expected, ?string $input = null, array $configuration = []): void
public function testFix(string $expected, ?string $input = null, array $configuration = []): void
{
$this->fixer->configure($configuration);

$this->doTest($expected, $input);
}

public static function provideFix70Cases(): iterable
public static function provideFixCases(): iterable
{
return [
[
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/CastNotation/LowercaseCastFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class LowercaseCastFixerTest extends AbstractFixerTestCase
/**
* @dataProvider provideFixCases
*/
public function testFix74(string $expected, ?string $input = null): void
public function testFix(string $expected, ?string $input = null): void
{
$this->doTest($expected, $input);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/CastNotation/ShortScalarCastFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class ShortScalarCastFixerTest extends AbstractFixerTestCase
/**
* @dataProvider provideFixCases
*/
public function testFix74(string $expected, ?string $input = null): void
public function testFix(string $expected, ?string $input = null): void
{
$this->doTest($expected, $input);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class ClassAttributesSeparationFixerTest extends AbstractFixerTestCase
/**
* @dataProvider provideFixCases
*/
public function testFixCases(string $expected, ?string $input = null): void
public function testFix(string $expected, ?string $input = null): void
{
$this->doTest($expected, $input);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
final class AssignNullCoalescingToCoalesceEqualFixerTest extends AbstractFixerTestCase
{
/**
* @dataProvider provideFix74Cases
* @dataProvider provideFixCases
*/
public function testFix74(string $expected, ?string $input = null): void
public function testFix(string $expected, ?string $input = null): void
{
$this->doTest($expected, $input);
}

public static function provideFix74Cases(): iterable
public static function provideFixCases(): iterable
{
yield 'simple' => [
'<?php $a ??= 1;',
Expand Down

0 comments on commit 96d8856

Please sign in to comment.