Code Duplication    Length = 8-10 lines in 2 locations

lib/custom/tests/MW/Filesystem/LaravelTest.php 2 locations

@@ 191-198 (lines=8) @@
188
	}
189
190
191
	public function testWriteException()
192
	{
193
		$this->mock->expects( $this->once() )->method( 'put' )
194
			->will( $this->throwException( new \Exception() ) );
195
196
		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
197
		$this->object->write( '', 'test' );
198
	}
199
200
201
	public function testWrites()
@@ 213-222 (lines=10) @@
210
	}
211
212
213
	public function testWritesException()
214
	{
215
		$this->mock->expects( $this->once() )->method( 'put' )
216
			->will( $this->throwException( new \Exception() ) );
217
218
		$handle = fopen( __FILE__, 'r' );
219
220
		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
221
		$this->object->writes( 'file', $handle );
222
	}
223
224
225
	public function testWritesException2()