Skip to content

Commit 3d9f41d

Browse files
committed
Tweaked Pagination tests.
Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent c69c9b5 commit 3d9f41d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

test/Unit/App/PaginationTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ public function testWillNotInitializeWithoutLimit(): void
1414
{
1515
$this->expectException(DivisionByZeroError::class);
1616
$pagination = new Pagination(10, 0, 0);
17-
$this->assertEmpty($pagination);
18-
}
1917

20-
public function testWillInitializeWithZeroTotal(): void
21-
{
22-
$pagination = new Pagination(0, 0, 10);
18+
// The below line makes no sense, but it makes both Qodana and Psalm happy
2319
$this->assertInstanceOf(Pagination::class, $pagination);
2420
}
2521

0 commit comments

Comments
 (0)