Code Duplication    Length = 7-8 lines in 4 locations

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

@@ 141-148 (lines=8) @@
138
	}
139
140
141
	public function testTimeException()
142
	{
143
		$this->mock->expects( $this->once() )->method( 'getTimestamp' )
144
			->will( $this->returnValue( false ) );
145
146
		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
147
		$this->object->time( 'test' );
148
	}
149
150
151
	public function testTimeException2()
@@ 211-218 (lines=8) @@
208
	}
209
210
211
	public function testReadException()
212
	{
213
		$this->mock->expects( $this->once() )->method( 'read' )
214
			->will( $this->returnValue( false ) );
215
216
		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
217
		$this->object->read( 'test' );
218
	}
219
220
221
	public function testReadException2()
@@ 277-283 (lines=7) @@
274
	}
275
276
277
	public function testWrite()
278
	{
279
		$this->mock->expects( $this->once() )->method( 'put' )
280
			->will( $this->returnValue( true ) );
281
282
		$this->object->write( 'test', 'value' );
283
	}
284
285
286
	public function testWriteException()
@@ 286-293 (lines=8) @@
283
	}
284
285
286
	public function testWriteException()
287
	{
288
		$this->mock->expects( $this->once() )->method( 'put' )
289
			->will( $this->returnValue( false ) );
290
291
		$this->setExpectedException( '\Aimeos\MW\Filesystem\Exception' );
292
		$this->object->write( 'test', 'value' );
293
	}
294
295
296
	public function testWriteException2()