Completed
Push — elements-php7 ( b21d4c...39d551 )
by Jeroen De
08:05
created

ImageOverlayTest::getClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Maps\Tests\Elements;
4
5
use DataValues\Geo\Values\LatLongValue;
6
use Maps\Elements\ImageOverlay;
7
8
/**
9
 * @covers \Maps\Elements\ImageOverlay
10
 *
11
 * @licence GNU GPL v2+
12
 * @author Jeroen De Dauw < [email protected] >
13
 */
14
class ImageOverlayTest extends \PHPUnit_Framework_TestCase {
15
16
	public function testGetImage() {
17
		$imageOverlay = new ImageOverlay(
18
			new LatLongValue( 4, 2 ),
19
			new LatLongValue( -4, -2 ),
20
			'Foo.png'
21
		);
22
23
		$this->assertSame( 'Foo.png', $imageOverlay->getImage() );
24
	}
25
26
}
27
28
29
30