@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | use Pager\Pagination; |
| 5 | 5 | use PHPUnit\Framework\TestCase; |
| 6 | 6 | |
| 7 | -class PaginationTest extends TestCase{ |
|
| 7 | +class PaginationTest extends TestCase { |
|
| 8 | 8 | |
| 9 | 9 | protected $pagination; |
| 10 | 10 | |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | $this->pagination = new Pagination(); |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | - public function tearDown(){ |
|
| 15 | + public function tearDown() { |
|
| 16 | 16 | unset($this->pagination); |
| 17 | 17 | } |
| 18 | 18 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * @covers Pager\Pagination::postLinks |
| 27 | 27 | * @covers Pager\Pagination::preLinks |
| 28 | 28 | */ |
| 29 | - public function testCreatePager(){ |
|
| 29 | + public function testCreatePager() { |
|
| 30 | 30 | $pager = $this->pagination->paging(106, '/test-page'); |
| 31 | 31 | $this->assertStringStartsWith("<ul", $pager); |
| 32 | 32 | $this->assertStringEndsWith("ul>", $pager); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * @covers Pager\Pagination::postLinks |
| 47 | 47 | * @covers Pager\Pagination::preLinks |
| 48 | 48 | */ |
| 49 | - public function testNoPagerNeeded(){ |
|
| 49 | + public function testNoPagerNeeded() { |
|
| 50 | 50 | $this->assertFalse($this->pagination->paging(10, '/test-page')); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * @covers Pager\Pagination::postLinks |
| 61 | 61 | * @covers Pager\Pagination::preLinks |
| 62 | 62 | */ |
| 63 | - public function testPagerArrows(){ |
|
| 63 | + public function testPagerArrows() { |
|
| 64 | 64 | $this->markTestIncomplete('Test not yet implemented'); |
| 65 | 65 | } |
| 66 | 66 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * @covers Pager\Pagination::postLinks |
| 75 | 75 | * @covers Pager\Pagination::preLinks |
| 76 | 76 | */ |
| 77 | - public function testPagerWithQueryString(){ |
|
| 77 | + public function testPagerWithQueryString() { |
|
| 78 | 78 | $this->markTestIncomplete('Test not yet implemented'); |
| 79 | 79 | } |
| 80 | 80 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * @covers Pager\Pagination::setPaginationClass |
| 83 | 83 | * @covers Pager\Pagination::getPaginationClass |
| 84 | 84 | */ |
| 85 | - public function testSetPagerClass(){ |
|
| 85 | + public function testSetPagerClass() { |
|
| 86 | 86 | $this->assertEquals('pagination', $this->pagination->getPaginationClass()); |
| 87 | 87 | $this->pagination->setPaginationClass('my-class'); |
| 88 | 88 | $this->assertNotEquals('pagination', $this->pagination->getPaginationClass()); |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * @covers Pager\Pagination::setActiveClass |
| 96 | 96 | * @covers Pager\Pagination::getActiveClass |
| 97 | 97 | */ |
| 98 | - public function testSetActiveClass(){ |
|
| 98 | + public function testSetActiveClass() { |
|
| 99 | 99 | $this->assertEquals('active', $this->pagination->getActiveClass()); |
| 100 | 100 | $this->pagination->setActiveClass('current'); |
| 101 | 101 | $this->assertNotEquals('active', $this->pagination->getActiveClass()); |