Skip to content

Commit be4683a

Browse files
committed
composer対応
1 parent e02d549 commit be4683a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
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.

tests/SimplePaginationTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2-
require_once dirname(__DIR__).'/SimplePagination.php';
2+
require_once dirname(__DIR__).'/lib/SimplePagination/SimplePagination.php';
33

44
class 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
{

0 commit comments

Comments
 (0)