From 0ec1659b99ec6c785b8720a2783044b94d64290c Mon Sep 17 00:00:00 2001 From: Mark Rogoyski Date: Sun, 10 Mar 2024 19:11:35 -0700 Subject: [PATCH] Minor improvements. --- tests/unit/ArrayView/IndexTest.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/unit/ArrayView/IndexTest.php b/tests/unit/ArrayView/IndexTest.php index d8aa65a..410873a 100644 --- a/tests/unit/ArrayView/IndexTest.php +++ b/tests/unit/ArrayView/IndexTest.php @@ -236,7 +236,7 @@ public function testPositiveIndexError($i): void $this->expectExceptionMessageMatches('/Index \d+ is out of range/'); // When - $slice = $arrayView[$i]; + $number = $arrayView[$i]; } public static function dataProviderForIndexesLargerThanTwo(): array @@ -267,7 +267,7 @@ public function testNegativeIndexError($i): void $this->expectExceptionMessageMatches('/Index -\d+ is out of range/'); // When - $slice = $arrayView[$i]; + $number = $arrayView[$i]; } public static function dataProviderForIndexesSmallerThanThanNegativeThree(): array @@ -297,8 +297,7 @@ public function testNonIntegerIndexError($i): void $this->expectException(KeyError::class); // When - $slice = $arrayView[$i]; - var_dump($slice); + $number = $arrayView[$i]; } public static function dataProviderForNonIntegerIndexes(): array