Skip to content

Commit 0ec1659

Browse files
markrogoyskiSmoren
authored andcommitted
Minor improvements.
1 parent 62c5034 commit 0ec1659

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/unit/ArrayView/IndexTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function testPositiveIndexError($i): void
236236
$this->expectExceptionMessageMatches('/Index \d+ is out of range/');
237237

238238
// When
239-
$slice = $arrayView[$i];
239+
$number = $arrayView[$i];
240240
}
241241

242242
public static function dataProviderForIndexesLargerThanTwo(): array
@@ -267,7 +267,7 @@ public function testNegativeIndexError($i): void
267267
$this->expectExceptionMessageMatches('/Index -\d+ is out of range/');
268268

269269
// When
270-
$slice = $arrayView[$i];
270+
$number = $arrayView[$i];
271271
}
272272

273273
public static function dataProviderForIndexesSmallerThanThanNegativeThree(): array
@@ -297,8 +297,7 @@ public function testNonIntegerIndexError($i): void
297297
$this->expectException(KeyError::class);
298298

299299
// When
300-
$slice = $arrayView[$i];
301-
var_dump($slice);
300+
$number = $arrayView[$i];
302301
}
303302

304303
public static function dataProviderForNonIntegerIndexes(): array

0 commit comments

Comments
 (0)