Code Duplication    Length = 9-10 lines in 2 locations

tests/model/ImageTest.php 2 locations

@@ 346-354 (lines=9) @@
343
	/**
344
	 * Test that propertes from the source Image are inherited by resampled images
345
	 */
346
	public function testPropertyInheritance() {
347
		$testString = 'This is a test';
348
		$origImage = $this->objFromFixture('Image', 'imageWithTitle');
349
		$origImage->TestProperty = $testString;
350
		$resampled = $origImage->ScaleWidth(10);
351
		$this->assertEquals($resampled->TestProperty, $testString);
352
		$resampled2 = $resampled->ScaleWidth(5);
353
		$this->assertEquals($resampled2->TestProperty, $testString);
354
	}
355
356
	/**
357
	 * Tests that cached images are regenerated properly after a cached file is renamed with new arguments
@@ 415-424 (lines=10) @@
412
	/**
413
	 * Tests path properties of cached images with multiple image manipulations
414
	 */
415
	public function testPathPropertiesCachedImage() {
416
		$image = $this->objFromFixture('Image', 'imageWithoutTitle');
417
		$firstImage = $image->ScaleWidth(200);
418
		$firstImagePath = $firstImage->getRelativePath();
419
		$this->assertEquals($firstImagePath, $firstImage->Filename);
420
421
		$secondImage = $firstImage->ScaleHeight(100);
422
		$secondImagePath = $secondImage->getRelativePath();
423
		$this->assertEquals($secondImagePath, $secondImage->Filename);
424
	}
425
426
	/**
427
	 * Tests the static function Image::strip_resampled_prefix, to ensure that