Code Duplication    Length = 7-8 lines in 4 locations

lib/custom/tests/MW/Filesystem/FlyTest.php 4 locations

@@ 348-354 (lines=7) @@
345
	}
346
347
348
	public function testMove()
349
	{
350
		$this->mock->expects( $this->once() )->method( 'rename' )
351
			->will( $this->returnValue( true ) );
352
353
		$this->object->move( 'file1', 'file2' );
354
	}
355
356
357
	public function testMoveException()
@@ 357-364 (lines=8) @@
354
	}
355
356
357
	public function testMoveException()
358
	{
359
		$this->mock->expects( $this->once() )->method( 'rename' )
360
			->will( $this->returnValue( false ) );
361
362
		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
363
		$this->object->move( 'file1', 'file2' );
364
	}
365
366
367
	public function testMoveException2()
@@ 377-383 (lines=7) @@
374
	}
375
376
377
	public function testCopy()
378
	{
379
		$this->mock->expects( $this->once() )->method( 'copy' )
380
		->will( $this->returnValue( true ) );
381
382
		$this->object->copy( 'file1', 'file2' );
383
	}
384
385
386
	public function testCopyException()
@@ 386-393 (lines=8) @@
383
	}
384
385
386
	public function testCopyException()
387
	{
388
		$this->mock->expects( $this->once() )->method( 'copy' )
389
		->will( $this->returnValue( false ) );
390
391
		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
392
		$this->object->copy( 'file1', 'file2' );
393
	}
394
395
396
	public function testCopyException2()