| Total Complexity | 6 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | final class SetPowerTest extends TestCase |
||
| 9 | { |
||
| 10 | public function testLevelPropertyValidValues(): void |
||
| 11 | { |
||
| 12 | foreach ([0, 42, 65535] as $level) { |
||
| 13 | $this->assertSame((new SetPower($level))->getLevel(), $level); |
||
| 14 | } |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @expectedException \DaveRandom\LibLifxLan\Exceptions\InvalidValueException |
||
| 19 | */ |
||
| 20 | public function testLevelPropertyValueTooLow(): void |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @expectedException \DaveRandom\LibLifxLan\Exceptions\InvalidValueException |
||
| 27 | */ |
||
| 28 | public function testLevelPropertyValueTooHigh(): void |
||
| 29 | { |
||
| 30 | new SetPower(65536); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function testTypeIdProperty(): void |
||
| 36 | } |
||
| 37 | |||
| 38 | public function testWireSizeProperty(): void |
||
| 41 | } |
||
| 42 | } |
||
| 43 |