Code Duplication    Length = 7-8 lines in 2 locations

tests/LuaInputStreamTest.php 2 locations

@@ 44-51 (lines=8) @@
41
     * @expectedException \Vlaswinkel\Lua\ParseException
42
     * @expectedExceptionMessage Other error (2:1)
43
     */
44
    public function testMultipleLineError() {
45
        $obj = new InputStream("a\nb");
46
        $this->assertEquals("a", $obj->next());
47
        $this->assertEquals("\n", $obj->next());
48
        $this->assertEquals("b", $obj->next());
49
50
        $obj->error("Other error");
51
    }
52
53
    /**
54
     * @expectedException \Vlaswinkel\Lua\ParseException
@@ 57-63 (lines=7) @@
54
     * @expectedException \Vlaswinkel\Lua\ParseException
55
     * @expectedExceptionMessage This error (1:2)
56
     */
57
    public function testMultipleColumnError() {
58
        $obj = new InputStream("ab");
59
        $this->assertEquals("a", $obj->next());
60
        $this->assertEquals("b", $obj->next());
61
62
        $obj->error("This error");
63
    }
64
65
    /**
66
     * @expectedException \Vlaswinkel\Lua\ParseException