Skip to content

Commit

Permalink
Improve test method names.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrogoyski committed Mar 10, 2024
1 parent cf5cf7b commit 3b31aa4
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/unit/ArrayView/SliceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ public static function dataProviderForSliceNegativeLowColon(): array
}

/**
* @dataProvider dataProviderForSliceHighColon
* @dataProvider dataProviderForSliceColonHigh
* @param array $array
* @param int $high
* @param array $expected
* @return void
*/
public function testSliceHighColon(array $array, int $high, array $expected): void
public function testSliceColonHigh(array $array, int $high, array $expected): void
{
// Given
$arrayView = ArrayView::toView($array);
Expand All @@ -286,7 +286,7 @@ public function testSliceHighColon(array $array, int $high, array $expected): vo
$this->assertSame($expected, $slice);
}

public static function dataProviderForSliceHighColon(): array
public static function dataProviderForSliceColonHigh(): array
{
return [
[
Expand Down Expand Up @@ -373,13 +373,13 @@ public static function dataProviderForSliceHighColon(): array
}

/**
* @dataProvider dataProviderForSliceNegativeHighColon
* @dataProvider dataProviderForSliceColonNegativeHigh
* @param array $array
* @param int $negativeHigh
* @param array $expected
* @return void
*/
public function testSliceNegativeHighColon(array $array, int $negativeHigh, array $expected): void
public function testSliceColonNegativeHigh(array $array, int $negativeHigh, array $expected): void
{
// Given
$arrayView = ArrayView::toView($array);
Expand All @@ -391,7 +391,7 @@ public function testSliceNegativeHighColon(array $array, int $negativeHigh, arra
$this->assertSame($expected, $slice);
}

public static function dataProviderForSliceNegativeHighColon(): array
public static function dataProviderForSliceColonNegativeHigh(): array
{
return [
[
Expand Down Expand Up @@ -1097,17 +1097,17 @@ public function testSliceDoubleColonStepZeroError(): void
/**
* @dataProvider dataProviderForSliceDoubleColonNegativeStep
* @param array $array
* @param int $step
* @param int $negativeStep
* @param array $expected
* @return void
*/
public function testSliceDoubleColonNegativeStep(array $array, int $step, array $expected): void
public function testSliceDoubleColonNegativeStep(array $array, int $negativeStep, array $expected): void
{
// Given
$arrayView = ArrayView::toView($array);

// When
$slice = $arrayView["::$step"];
$slice = $arrayView["::$negativeStep"];

// Then
$this->assertSame($expected, $slice);
Expand Down Expand Up @@ -1170,14 +1170,14 @@ public static function dataProviderForSliceDoubleColonNegativeStep(): array
}

/**
* @dataProvider dataProviderForSliceLowColonStep
* @dataProvider dataProviderForSliceLowDoubleColonStep
* @param array $array
* @param int $low
* @param int $step
* @param array $expected
* @return void
*/
public function testSliceLowColonStep(array $array, int $low, int $step, array $expected): void
public function testSliceLowDoubleColonStep(array $array, int $low, int $step, array $expected): void
{
// Given
$arrayView = ArrayView::toView($array);
Expand All @@ -1189,7 +1189,7 @@ public function testSliceLowColonStep(array $array, int $low, int $step, array $
$this->assertSame($expected, $slice);
}

public static function dataProviderForSliceLowColonStep(): array
public static function dataProviderForSliceLowDoubleColonStep(): array
{
return [
[
Expand Down Expand Up @@ -1263,7 +1263,7 @@ public static function dataProviderForSliceLowColonStep(): array
* @param array $expected
* @return void
*/
public function testSliceColonHighStepStep(array $array, int $high, int $step, array $expected): void
public function testSliceColonHighStep(array $array, int $high, int $step, array $expected): void
{
// Given
$arrayView = ArrayView::toView($array);
Expand Down

0 comments on commit 3b31aa4

Please sign in to comment.