@@ -268,13 +268,13 @@ public static function dataProviderForSliceNegativeLowColon(): array
268268 }
269269
270270 /**
271- * @dataProvider dataProviderForSliceHighColon
271+ * @dataProvider dataProviderForSliceColonHigh
272272 * @param array $array
273273 * @param int $high
274274 * @param array $expected
275275 * @return void
276276 */
277- public function testSliceHighColon (array $ array , int $ high , array $ expected ): void
277+ public function testSliceColonHigh (array $ array , int $ high , array $ expected ): void
278278 {
279279 // Given
280280 $ arrayView = ArrayView::toView ($ array );
@@ -286,7 +286,7 @@ public function testSliceHighColon(array $array, int $high, array $expected): vo
286286 $ this ->assertSame ($ expected , $ slice );
287287 }
288288
289- public static function dataProviderForSliceHighColon (): array
289+ public static function dataProviderForSliceColonHigh (): array
290290 {
291291 return [
292292 [
@@ -373,13 +373,13 @@ public static function dataProviderForSliceHighColon(): array
373373 }
374374
375375 /**
376- * @dataProvider dataProviderForSliceNegativeHighColon
376+ * @dataProvider dataProviderForSliceColonNegativeHigh
377377 * @param array $array
378378 * @param int $negativeHigh
379379 * @param array $expected
380380 * @return void
381381 */
382- public function testSliceNegativeHighColon (array $ array , int $ negativeHigh , array $ expected ): void
382+ public function testSliceColonNegativeHigh (array $ array , int $ negativeHigh , array $ expected ): void
383383 {
384384 // Given
385385 $ arrayView = ArrayView::toView ($ array );
@@ -391,7 +391,7 @@ public function testSliceNegativeHighColon(array $array, int $negativeHigh, arra
391391 $ this ->assertSame ($ expected , $ slice );
392392 }
393393
394- public static function dataProviderForSliceNegativeHighColon (): array
394+ public static function dataProviderForSliceColonNegativeHigh (): array
395395 {
396396 return [
397397 [
@@ -1097,17 +1097,17 @@ public function testSliceDoubleColonStepZeroError(): void
10971097 /**
10981098 * @dataProvider dataProviderForSliceDoubleColonNegativeStep
10991099 * @param array $array
1100- * @param int $step
1100+ * @param int $negativeStep
11011101 * @param array $expected
11021102 * @return void
11031103 */
1104- public function testSliceDoubleColonNegativeStep (array $ array , int $ step , array $ expected ): void
1104+ public function testSliceDoubleColonNegativeStep (array $ array , int $ negativeStep , array $ expected ): void
11051105 {
11061106 // Given
11071107 $ arrayView = ArrayView::toView ($ array );
11081108
11091109 // When
1110- $ slice = $ arrayView [":: $ step " ];
1110+ $ slice = $ arrayView [":: $ negativeStep " ];
11111111
11121112 // Then
11131113 $ this ->assertSame ($ expected , $ slice );
@@ -1170,14 +1170,14 @@ public static function dataProviderForSliceDoubleColonNegativeStep(): array
11701170 }
11711171
11721172 /**
1173- * @dataProvider dataProviderForSliceLowColonStep
1173+ * @dataProvider dataProviderForSliceLowDoubleColonStep
11741174 * @param array $array
11751175 * @param int $low
11761176 * @param int $step
11771177 * @param array $expected
11781178 * @return void
11791179 */
1180- public function testSliceLowColonStep (array $ array , int $ low , int $ step , array $ expected ): void
1180+ public function testSliceLowDoubleColonStep (array $ array , int $ low , int $ step , array $ expected ): void
11811181 {
11821182 // Given
11831183 $ arrayView = ArrayView::toView ($ array );
@@ -1189,7 +1189,7 @@ public function testSliceLowColonStep(array $array, int $low, int $step, array $
11891189 $ this ->assertSame ($ expected , $ slice );
11901190 }
11911191
1192- public static function dataProviderForSliceLowColonStep (): array
1192+ public static function dataProviderForSliceLowDoubleColonStep (): array
11931193 {
11941194 return [
11951195 [
@@ -1263,7 +1263,7 @@ public static function dataProviderForSliceLowColonStep(): array
12631263 * @param array $expected
12641264 * @return void
12651265 */
1266- public function testSliceColonHighStepStep (array $ array , int $ high , int $ step , array $ expected ): void
1266+ public function testSliceColonHighStep (array $ array , int $ high , int $ step , array $ expected ): void
12671267 {
12681268 // Given
12691269 $ arrayView = ArrayView::toView ($ array );
0 commit comments