| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class PagerTagTest extends TestCase |
||
| 11 | { |
||
| 12 | public function testFromAmazonRequestFull(): void |
||
| 13 | { |
||
| 14 | $tag = PagerTag::fromAmazonRequest([ |
||
| 15 | 'index' => 3, |
||
| 16 | 'pageCount' => 10, |
||
| 17 | 'allowForward' => true, |
||
| 18 | 'allowBackwards' => false, |
||
| 19 | ]); |
||
| 20 | |||
| 21 | $this->assertSame(3, $tag->index); |
||
| 22 | $this->assertSame(10, $tag->pageCount); |
||
| 23 | $this->assertTrue($tag->allowForward); |
||
| 24 | $this->assertFalse($tag->allowBackwards); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function testFromAmazonRequestPartial(): void |
||
| 38 | } |
||
| 39 | |||
| 40 | public function testFromAmazonRequestEmpty(): void |
||
| 50 |