Code Duplication    Length = 16-17 lines in 2 locations

Tests/RedisTest.php 2 locations

@@ 102-118 (lines=17) @@
99
	 * @covers  Joomla\Cache\Redis::connect
100
	 * @since   1.0
101
	 */
102
	public function testClear()
103
	{
104
		$this->instance->set('foo', 'bar');
105
		$this->instance->set('boo', 'car');
106
107
		$this->instance->clear();
108
109
		$this->assertFalse(
110
			$this->instance->get('foo')->isHit(),
111
			'Item should have been removed'
112
		);
113
114
		$this->assertFalse(
115
			$this->instance->get('goo')->isHit(),
116
			'Item should have been removed'
117
		);
118
	}
119
120
	/**
121
	 * Tests the Joomla\Cache\Redis::exists method.
@@ 243-258 (lines=16) @@
240
	 * @covers  Joomla\Cache\Redis::removeMultiple
241
	 * @since   1.0
242
	 */
243
	public function removeMultiple()
244
	{
245
		$this->instance->set('foo', 'bar');
246
		$this->instance->set('boo', 'bar');
247
248
		$this->instance->removeMultiple(array('foo', 'bar'));
249
250
		$this->assertFalse(
251
			$this->instance->get('foo')->isHit(),
252
			'Item should have been removed'
253
		);
254
		$this->assertFalse(
255
			$this->instance->get('boo')->isHit(),
256
			'Item should have been removed'
257
		);
258
	}
259
260
	/**
261
	 * Setup the tests.