1 | <?php |
||
18 | class LatLongValueTest extends DataValueTest { |
||
19 | |||
20 | /** |
||
21 | * @see DataValueTest::getClass |
||
22 | * |
||
23 | * @return string |
||
24 | */ |
||
25 | public function getClass() { |
||
28 | |||
29 | public function validConstructorArgumentsProvider() { |
||
45 | |||
46 | public function invalidConstructorArgumentsProvider() { |
||
57 | |||
58 | /** |
||
59 | * @dataProvider instanceProvider |
||
60 | * @param LatLongValue $latLongValue |
||
61 | * @param array $arguments |
||
62 | */ |
||
63 | public function testGetLatitude( LatLongValue $latLongValue, array $arguments ) { |
||
69 | |||
70 | /** |
||
71 | * @dataProvider instanceProvider |
||
72 | * @param LatLongValue $latLongValue |
||
73 | * @param array $arguments |
||
74 | */ |
||
75 | public function testGetLongitude( LatLongValue $latLongValue, array $arguments ) { |
||
81 | |||
82 | /** |
||
83 | * @dataProvider invalidCoordinatesProvider |
||
84 | */ |
||
85 | public function testConstructorThrowsExceptionWhenParametersAreInvalid( float $latitude, float $longitude ) { |
||
89 | |||
90 | public function invalidCoordinatesProvider() { |
||
96 | |||
97 | public function testCopyProducesIdenticalObject() { |
||
104 | |||
105 | public function testCopyProducesObjectWithDifferentIdentity() { |
||
112 | |||
113 | public function testGetHashProducesMd5() { |
||
117 | |||
118 | /** |
||
119 | * @dataProvider instanceProvider |
||
120 | */ |
||
121 | public function testValuesEqualThemselves( LatLongValue $latLongValue ) { |
||
124 | |||
125 | /** |
||
126 | * @dataProvider instanceProvider |
||
127 | */ |
||
128 | public function testIdenticalValuesAreEqual( LatLongValue $latLongValue ) { |
||
131 | |||
132 | public function testDifferentValuesDoNotEqual() { |
||
149 | |||
150 | } |
||
151 |