@@ 38-47 (lines=10) @@ | ||
35 | $this->assertEquals(Legend::POSITION_RIGHT, $result); |
|
36 | } |
|
37 | ||
38 | public function testGetPosition() |
|
39 | { |
|
40 | $PositionValue = Legend::POSITION_BOTTOM; |
|
41 | ||
42 | $testInstance = new Legend(); |
|
43 | $setValue = $testInstance->setPosition($PositionValue); |
|
44 | ||
45 | $result = $testInstance->getPosition(); |
|
46 | $this->assertEquals($PositionValue, $result); |
|
47 | } |
|
48 | ||
49 | public function testSetPositionXL() |
|
50 | { |
|
@@ 68-77 (lines=10) @@ | ||
65 | } |
|
66 | } |
|
67 | ||
68 | public function testSetInvalidXLPositionReturnsFalse() |
|
69 | { |
|
70 | $testInstance = new Legend(); |
|
71 | ||
72 | $result = $testInstance->setPositionXL(999); |
|
73 | $this->assertFalse($result); |
|
74 | // Ensure that value is unchanged |
|
75 | $result = $testInstance->getPositionXL(); |
|
76 | $this->assertEquals(Legend::XL_LEGEND_POSITION_RIGHT, $result); |
|
77 | } |
|
78 | ||
79 | public function testGetPositionXL() |
|
80 | { |
|
@@ 79-88 (lines=10) @@ | ||
76 | $this->assertEquals(Legend::XL_LEGEND_POSITION_RIGHT, $result); |
|
77 | } |
|
78 | ||
79 | public function testGetPositionXL() |
|
80 | { |
|
81 | $PositionValue = Legend::XL_LEGEND_POSITION_CORNER; |
|
82 | ||
83 | $testInstance = new Legend(); |
|
84 | $setValue = $testInstance->setPositionXL($PositionValue); |
|
85 | ||
86 | $result = $testInstance->getPositionXL(); |
|
87 | $this->assertEquals($PositionValue, $result); |
|
88 | } |
|
89 | ||
90 | public function testSetOverlay() |
|
91 | { |
|
@@ 116-125 (lines=10) @@ | ||
113 | $this->assertFalse($result); |
|
114 | } |
|
115 | ||
116 | public function testGetOverlay() |
|
117 | { |
|
118 | $OverlayValue = true; |
|
119 | ||
120 | $testInstance = new Legend(); |
|
121 | $setValue = $testInstance->setOverlay($OverlayValue); |
|
122 | ||
123 | $result = $testInstance->getOverlay(); |
|
124 | $this->assertEquals($OverlayValue, $result); |
|
125 | } |
|
126 | } |
|
127 |