File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1- # php-simplepagination
1+ # php-simple-pagination
22
3+ # install
4+
5+ > composer require ha1t/php-simple-pagination
36
47# example
58
File renamed without changes.
Original file line number Diff line number Diff line change 11<?php
2- require_once dirname (__DIR__ ).'/SimplePagination.php ' ;
2+ require_once dirname (__DIR__ ).'/lib/SimplePagination/ SimplePagination.php ' ;
33
44class SimplePaginationTest extends PHPUnit_Framework_TestCase
55{
66 public function test_construct ()
7- {
7+ {
88 $ pagination = new SimplePagination (1 , 10 );
99 $ this ->assertEquals (1 , $ pagination ->current );
1010 $ this ->assertEquals (0 , $ pagination ->prev );
@@ -18,7 +18,7 @@ public function test_construct()
1818 $ this ->assertEquals (3 , $ pagination ->next );
1919 $ this ->assertEquals (10 , $ pagination ->count );
2020 $ this ->assertEquals (11 , $ pagination ->start_index );
21- }
21+ }
2222
2323 public function test_checkLastPage ()
2424 {
You can’t perform that action at this time.
0 commit comments