Code Duplication    Length = 8-8 lines in 3 locations

tests/Stream/FileStreamTest.php 3 locations

@@ 10-17 (lines=8) @@
7
8
class FileStreamTest extends TestCase
9
{
10
    public function testNext()
11
    {
12
        $prophet = $this->prophesize(\SplFileObject::class);
13
        $prophet->next()->shouldBeCalledTimes(1);
14
15
        $stream = new FileStream($prophet->reveal());
16
        $stream->next();
17
    }
18
19
    public function testValid()
20
    {
@@ 19-26 (lines=8) @@
16
        $stream->next();
17
    }
18
19
    public function testValid()
20
    {
21
        $prophet = $this->prophesize(\SplFileObject::class);
22
        $prophet->valid()->shouldBeCalledTimes(1);
23
24
        $stream = new FileStream($prophet->reveal());
25
        $stream->valid();
26
    }
27
28
    public function testGetLine()
29
    {
@@ 28-35 (lines=8) @@
25
        $stream->valid();
26
    }
27
28
    public function testGetLine()
29
    {
30
        $prophet = $this->prophesize(\SplFileObject::class);
31
        $prophet->current()->shouldBeCalled();
32
33
        $stream = new FileStream($prophet->reveal());
34
        $stream->read();
35
    }
36
}
37