Code Duplication    Length = 16-16 lines in 2 locations

tests/integration/Modify/Contract/MergeFilesTest.php 2 locations

@@ 118-133 (lines=16) @@
115
        static::assertFalse($this->merge->canContract($collection));
116
    }
117
118
    public function testCallingContractWithAFileThatCannotBeContractedWillThrowAnException()
119
    {
120
        $collection = new FileNodeCollection();
121
        $file = m::mock(LocalFile::class);
122
        $file->shouldReceive('exists')
123
             ->andReturn(false);
124
        $file->shouldReceive('getCompression')
125
             ->andReturn(CompressionType::NONE);
126
        $collection->add($file);
127
128
        $target = m::mock(LocalFile::class);
129
130
        $this->expectException(InvalidArgumentException::class);
131
132
        $this->merge->contract($collection, $target);
133
    }
134
135
    public function testCallingContractWithANonLocalTargetWillThrowAnException()
136
    {
@@ 135-150 (lines=16) @@
132
        $this->merge->contract($collection, $target);
133
    }
134
135
    public function testCallingContractWithANonLocalTargetWillThrowAnException()
136
    {
137
        $collection = new FileNodeCollection();
138
        $file = m::mock(LocalFile::class);
139
        $file->shouldReceive('exists')
140
             ->andReturn(true);
141
        $file->shouldReceive('getCompression')
142
             ->andReturn(CompressionType::NONE);
143
        $collection->add($file);
144
145
        $target = m::mock(FileNodeInterface::class);
146
147
        $this->expectException(InvalidArgumentException::class);
148
149
        $this->merge->contract($collection, $target);
150
    }
151
152
    public function testSimpleMergeFiles()
153
    {