Skip to content

Commit c69c9b5

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

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/Unit/App/PaginationTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ class PaginationTest extends TestCase
1313
public function testWillNotInitializeWithoutLimit(): void
1414
{
1515
$this->expectException(DivisionByZeroError::class);
16-
new Pagination(10, 0, 0);
16+
$pagination = new Pagination(10, 0, 0);
17+
$this->assertEmpty($pagination);
1718
}
1819

1920
public function testWillInitializeWithZeroTotal(): void
2021
{
21-
$this->expectNotToPerformAssertions();
22-
new Pagination(0, 0, 10);
22+
$pagination = new Pagination(0, 0, 10);
23+
$this->assertInstanceOf(Pagination::class, $pagination);
2324
}
2425

2526
public function testWillInitializeWithLimitOnly(): void

0 commit comments

Comments
 (0)