Code Duplication    Length = 10-10 lines in 2 locations

tests/integration/ParserTest.php 2 locations

@@ 96-105 (lines=10) @@
93
        ];
94
    }
95
96
    public function testParseExceptionOnEscapeAsLastBitOfString()
97
    {
98
        $csv = '"string",\\';
99
        $tokeniser = new StringTokeniser(new CsvConfiguration(), $csv);
100
        $parser = new Parser();
101
102
        static::expectException(RuntimeException::class);
103
104
        iterator_to_array($parser->parse($tokeniser->getTokens()));
105
    }
106
107
    public function testParserExceptionOnStringOutsideOfQuotes()
108
    {
@@ 107-116 (lines=10) @@
104
        iterator_to_array($parser->parse($tokeniser->getTokens()));
105
    }
106
107
    public function testParserExceptionOnStringOutsideOfQuotes()
108
    {
109
        $csv = '"string"stuff,things';
110
        $tokeniser = new StringTokeniser(new CsvConfiguration(), $csv);
111
        $parser = new Parser();
112
113
        static::expectException(RuntimeException::class);
114
115
        iterator_to_array($parser->parse($tokeniser->getTokens()));
116
    }
117
}
118