Code Duplication    Length = 9-9 lines in 3 locations

tests/integration/Flow/File/CopyFileTest.php 1 location

@@ 26-34 (lines=9) @@
23
24
class CopyFileTest extends MemoryFileTestCase
25
{
26
    public function testCopyNotOnLocalFileWillThrowAnException()
27
    {
28
        $file = m::mock(NodeInterface::class);
29
        $flow = new CopyFile(m::mock(FileNode::class));
30
31
        $this->expectException(InvalidArgumentException::class);
32
33
        $flow->flow($file);
34
    }
35
36
    public function testCopyFileCreatesANewFile()
37
    {

tests/integration/Flow/File/MoveFileTest.php 1 location

@@ 26-34 (lines=9) @@
23
24
class MoveMemoryFileTest extends MemoryFileTestCase
25
{
26
    public function testMoveFileNotOnLocalFileWillThrowAnException()
27
    {
28
        $file = m::mock(NodeInterface::class);
29
        $flow = new MoveFile(m::mock(FileNode::class));
30
31
        $this->expectException(InvalidArgumentException::class);
32
33
        $flow->flow($file);
34
    }
35
36
    public function testCopyFileCreatesANewFile()
37
    {

tests/unit/Flow/Collection/EachTest.php 1 location

@@ 37-45 (lines=9) @@
34
        static::assertInstanceOf(FlowInterface::class, $flow);
35
    }
36
37
    public function testInvalidInputThrowsAnException()
38
    {
39
        $file = m::mock(NodeInterface::class);
40
        $flow = new Each(m::mock(FlowInterface::class));
41
42
        $this->expectException(InvalidArgumentException::class);
43
44
        $flow->flow($file);
45
    }
46
47
    public function testFlow()
48
    {