Completed
Push — elements-php7 ( c771ff...4564aa )
by Jeroen De
18:52 queued 10:46
created

ImageOverlayTest::testGetImage()   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 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Maps\Tests\Elements;
4
5
use Maps\Elements\ImageOverlay;
6
7
/**
8
 * @covers Maps\Elements\ImageOverlay
9
 *
10
 * @licence GNU GPL v2+
11
 * @author Jeroen De Dauw < [email protected] >
12
 */
13
class ImageOverlayTest extends RectangleTest {
14
15
	/**
16
	 * @see BaseElementTest::getClass
17
	 *
18
	 * @since 3.0
19
	 *
20
	 * @return string
21
	 */
22
	public function getClass() {
23
		return ImageOverlay::class;
24
	}
25
26
	public function validConstructorProvider() {
27
		$argLists = parent::validConstructorProvider();
28
29
		foreach ( $argLists as &$argList ) {
30
			$argList[] = 'Foo.png';
31
		}
32
33
		return $argLists;
34
	}
35
36
	/**
37
	 * @dataProvider instanceProvider
38
	 *
39
	 * @param ImageOverlay $imageOverlay
40
	 * @param array $arguments
41
	 */
42
	public function testGetImage( ImageOverlay $imageOverlay, array $arguments ) {
43
		$this->assertEquals( $arguments[2], $imageOverlay->getImage() );
44
	}
45
46
}
47
48
49
50