Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class LongitudeTest extends TestCase |
||
9 | { |
||
10 | public function testGivenAValidLongitudeAValidVOIsReturned(): void |
||
21 | } |
||
22 | |||
23 | public function testGivenATooLowLongitudeAnExceptionIsThrown(): void |
||
24 | { |
||
25 | $this->expectException(\InvalidArgumentException::class); |
||
26 | $this->expectExceptionMessage("Longitude must be a float number between -180.00 and 180.00."); |
||
27 | |||
28 | // Arrange |
||
29 | $longitude = -190.00; |
||
30 | |||
31 | // Act |
||
32 | CoordinatesLongitude::fromValue($longitude); |
||
33 | } |
||
34 | |||
35 | public function testGivenATooHighLongitudeAnExceptionIsThrown(): void |
||
45 | } |
||
46 | } |
||
47 |