Code Duplication    Length = 7-7 lines in 2 locations

tests/src/Helper/CreateStreamTrait.php 1 location

@@ 26-32 (lines=7) @@
23
     *
24
     * @return StreamInterface
25
     */
26
    protected function createStream($string)
27
    {
28
        $stream = fopen('php://memory', 'r+');
29
        fwrite($stream, $string);
30
        rewind($stream);
31
        return new Stream($stream);
32
    }
33
}
34

tests/unit/Format/Parser/CsvParserTest.php 1 location

@@ 49-55 (lines=7) @@
46
     *
47
     * @return StreamInterface
48
     */
49
    protected function createStream($string)
50
    {
51
        $stream = fopen('php://memory', 'r+');
52
        fwrite($stream, $string);
53
        rewind($stream);
54
        return new Stream($stream);
55
    }
56
57
    /**
58
     * @return array