| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class LatitudeTest extends TestCase |
||
| 9 | { |
||
| 10 | public function testGivenAValidLatitudeAValidVOIsReturned(): void |
||
| 11 | { |
||
| 12 | // Arrange |
||
| 13 | $latitude = 41.222621365339684; |
||
| 14 | |||
| 15 | // Act |
||
| 16 | $latitudeVO = CoordinatesLatitude::fromValue($latitude); |
||
| 17 | |||
| 18 | // Assert |
||
| 19 | $this->assertInstanceOf(CoordinatesLatitude::class, $latitudeVO); |
||
| 20 | $this->assertEquals($latitude, $latitudeVO->value()); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function testGivenATooLowLatitudeAnExceptionIsThrown(): void |
||
| 33 | } |
||
| 34 | |||
| 35 | public function testGivenATooHighLatitudeAnExceptionIsThrown(): void |
||
| 47 |