Code Duplication    Length = 8-8 lines in 3 locations

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

@@ 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()
@@ 367-374 (lines=8) @@
364
	}
365
366
367
	public function testMoveException2()
368
	{
369
		$this->mock->expects( $this->once() )->method( 'rename' )
370
			->will( $this->throwException( new \RuntimeException() ) );
371
372
		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
373
		$this->object->move( 'file1', 'file2' );
374
	}
375
376
377
	public function testCopy()
@@ 396-403 (lines=8) @@
393
	}
394
395
396
	public function testCopyException2()
397
	{
398
		$this->mock->expects( $this->once() )->method( 'copy' )
399
		->will( $this->throwException( new \RuntimeException() ) );
400
401
		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
402
		$this->object->copy( 'file1', 'file2' );
403
	}
404
}
405