@@ -121,9 +121,9 @@ public function testGetRawWeatherHistoryWithEndDateException()
121121 * @expectedException \InvalidArgumentException
122122 * @dataProvider uvIndexExceptionDataProvider
123123 */
124- public function testGetRawUVIndexWithQueryErrorException ($ lat , $ lon , $ dateTime )
124+ public function testGetRawUVIndexWithQueryErrorException ($ lat , $ lon , $ dateTime, $ precision )
125125 {
126- $ this ->owm ->getRawUVIndexData ($ lat , $ lon , $ dateTime );
126+ $ this ->owm ->getRawUVIndexData ($ lat , $ lon , $ dateTime, $ precision );
127127 }
128128
129129 /**
@@ -201,9 +201,10 @@ public function testParseJsonException()
201201 public function uvIndexExceptionDataProvider ()
202202 {
203203 return array (
204- array ('error-query-format ' , 'foo ' , new \DateTime ()),
205- array (5.4 , 1.2 , 'foo ' ),
206- array (5.4 , 12 , 'foo ' ),
204+ array ('error-query-format ' , 'foo ' , new \DateTime (), 'year ' ),
205+ array (5.4 , 1.2 , 'foo ' , 'month ' ),
206+ array (5.4 , 12 , 'foo ' , 'day ' ),
207+ array (5.4 , 1.2 , 'foo ' , 'bar ' ),
207208 );
208209 }
209210
0 commit comments