Code Duplication    Length = 35-35 lines in 2 locations

Tests/Functional/ReportBuilderTest.php 1 location

@@ 17-51 (lines=35) @@
14
use Symball\ReportBundle\Service\NavHorizontal;
15
16
/* Extend the default PHPUnit test case */
17
class ReportBuilderTest extends TestCase
18
{
19
    /* Test that posts can be instantiated */
20
    public function testCreation()
21
    {
22
        /* Create a post */
23
        $nav = new NavHorizontal();
24
        /* Check that it is an object type */
25
        $this->assertEquals(true, is_object($nav));
26
    }
27
    public function testNext()
28
    {
29
        $nav = new NavHorizontal(1, 1);
30
        $nav->next();
31
32
        $this->assertEquals(1, $nav->column());
33
        $this->assertEquals(2, $nav->row());
34
    }
35
    public function testAxisXMove()
36
    {
37
        $nav = new NavHorizontal(1, 1);
38
        $nav->axisXMove();
39
40
        $this->assertEquals(1, $nav->column());
41
        $this->assertEquals(2, $nav->row());
42
    }
43
    public function testAxisYMove()
44
    {
45
        $nav = new NavHorizontal(1, 1);
46
        $nav->axisYMove();
47
48
        $this->assertEquals(2, $nav->column());
49
        $this->assertEquals(1, $nav->row());
50
    }
51
}
52

Tests/Unit/NavHorizontalTest.php 1 location

@@ 17-51 (lines=35) @@
14
use Symball\ReportBundle\Service\NavHorizontal;
15
16
/* Extend the default PHPUnit test case */
17
class NavHorizontalTest extends TestCase
18
{
19
    /* Test that posts can be instantiated */
20
    public function testCreation()
21
    {
22
        /* Create a post */
23
        $nav = new NavHorizontal();
24
        /* Check that it is an object type */
25
        $this->assertEquals(true, is_object($nav));
26
    }
27
    public function testNext()
28
    {
29
        $nav = new NavHorizontal(1, 1);
30
        $nav->next();
31
32
        $this->assertEquals(1, $nav->column());
33
        $this->assertEquals(2, $nav->row());
34
    }
35
    public function testAxisXMove()
36
    {
37
        $nav = new NavHorizontal(1, 1);
38
        $nav->axisXMove();
39
40
        $this->assertEquals(1, $nav->column());
41
        $this->assertEquals(2, $nav->row());
42
    }
43
    public function testAxisYMove()
44
    {
45
        $nav = new NavHorizontal(1, 1);
46
        $nav->axisYMove();
47
48
        $this->assertEquals(2, $nav->column());
49
        $this->assertEquals(1, $nav->row());
50
    }
51
}
52