Skip to content

Commit

Permalink
Minor improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrogoyski authored and Smoren committed Mar 11, 2024
1 parent 62c5034 commit 0ec1659
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/unit/ArrayView/IndexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0ec1659

Please sign in to comment.