Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 248-254 (lines=7) @@
245
	}
246
247
248
	public function testReads()
249
	{
250
		$this->mock->expects( $this->once() )->method( 'readStream' )
251
			->will( $this->returnValue( 1 ) );
252
253
		$this->assertEquals( 1, $this->object->reads( 'test' ) );
254
	}
255
256
257
	public function testReadsException()
@@ 257-264 (lines=8) @@
254
	}
255
256
257
	public function testReadsException()
258
	{
259
		$this->mock->expects( $this->once() )->method( 'readStream' )
260
			->will( $this->returnValue( false ) );
261
262
		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
263
		$this->object->reads( 'test' );
264
	}
265
266
267
	public function testReadsException2()