PagerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testPagerReturnsCorrectParam() 0 8 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * File:PagerTest.php
6
 *
7
 * @author Maciej Sławik <[email protected]>
8
 * @copyright Copyright (C) 2018 Lizard Media (http://lizardmedia.pl)
9
 */
10
11
namespace MSlwk\Otomoto\App\Test\Unit\Stats\Pager;
12
13
use MSlwk\Otomoto\App\Stats\Pager\Pager;
14
use PHPUnit\Framework\TestCase;
15
16
/**
17
 * Class PagerTest
18
 * @package MSlwk\Otomoto\App\Test\Unit\Stats\Pager
19
 */
20
class PagerTest extends TestCase
21
{
22
    /**
23
     * @test
24
     */
25
    public function testPagerReturnsCorrectParam()
26
    {
27
        $pager = new Pager();
28
29
        $expectedParameter = 'page=4';
30
        $result = $pager->getPagerParameter(4);
31
32
        $this->assertEquals($expectedParameter, $result);
33
    }
34
}
35