Code Duplication    Length = 8-8 lines in 2 locations

Tests/TokenTest.php 2 locations

@@ 37-44 (lines=8) @@
34
        $this->assertEquals($token->getRule(), $rule, 'Rule is invalid');
35
    }
36
37
    public function testCreationWithStart()
38
    {
39
        $start = new Token(['test.name', 'pos' => 5]);
40
        $token = new Token(['test.name', 'pos' => 10, 'start' => $start]);
41
42
        $this->assertEquals($token->getStart(), $start, 'Token is not pointing to start.');
43
        $this->assertEquals($start->getEnd(), $token, 'Start is not pointing to token.');
44
    }
45
46
    public function testCreationWithEnd()
47
    {
@@ 46-53 (lines=8) @@
43
        $this->assertEquals($start->getEnd(), $token, 'Start is not pointing to token.');
44
    }
45
46
    public function testCreationWithEnd()
47
    {
48
        $end   = new Token(['test.name', 'pos' => 15]);
49
        $token = new Token(['test.name', 'pos' => 10, 'end' => $end]);
50
51
        $this->assertEquals($token->getEnd(), $end, 'Token is not pointing to end.');
52
        $this->assertEquals($end->getStart(), $token, 'End is not pointing to token.');
53
    }
54
55
    public function testCreationWithLength()
56
    {