@@ -25,15 +25,15 @@ public function testAirPollutionGetCurrent()
2525 )
2626 );
2727
28- $ response = $ this ->givenApi ()->getAirPollution () ->getCurrent (50 , 50 );
28+ $ response = $ this ->givenApi ()->airPollution ->getCurrent (50 , 50 );
2929 $ this ->assertCurrentResponse ($ response );
3030 }
3131
3232 #[DataProviderExternal(InvalidParamDataProvider::class, 'provideInvalidCoordinateData ' )]
3333 public function testAirPollutionGetCurrentWithInvalidCoordinate (float $ latitude , float $ longitude , string $ expectedException )
3434 {
3535 $ this ->expectException ($ expectedException );
36- $ this ->givenApi ()->getAirPollution () ->getCurrent ($ latitude , $ longitude );
36+ $ this ->givenApi ()->airPollution ->getCurrent ($ latitude , $ longitude );
3737 }
3838
3939 // --- FORECAST ---
@@ -47,15 +47,15 @@ public function testAirPollutionGetForecast()
4747 )
4848 );
4949
50- $ response = $ this ->givenApi ()->getAirPollution () ->getForecast (50 , 50 );
50+ $ response = $ this ->givenApi ()->airPollution ->getForecast (50 , 50 );
5151 $ this ->assertForecastResponse ($ response );
5252 }
5353
5454 #[DataProviderExternal(InvalidParamDataProvider::class, 'provideInvalidCoordinateData ' )]
5555 public function testAirPollutionGetForecastWithInvalidCoordinate (float $ latitude , float $ longitude , string $ expectedException )
5656 {
5757 $ this ->expectException ($ expectedException );
58- $ this ->givenApi ()->getAirPollution () ->getForecast ($ latitude , $ longitude );
58+ $ this ->givenApi ()->airPollution ->getForecast ($ latitude , $ longitude );
5959 }
6060
6161 // --- HISTORY ---
@@ -71,7 +71,7 @@ public function testAirPollutionGetHistory()
7171
7272 $ utcTimezone = new \DateTimeZone ('UTC ' );
7373
74- $ response = $ this ->givenApi ()->getAirPollution () ->getHistory (
74+ $ response = $ this ->givenApi ()->airPollution ->getHistory (
7575 50 ,
7676 50 ,
7777 new \DateTimeImmutable ('-5 days ' , $ utcTimezone ),
@@ -88,7 +88,7 @@ public function testAirPollutionGetHistoryWithInvalidCoordinate(float $latitude,
8888 $ startDate = new \DateTimeImmutable ('-5 days ' );
8989 $ endDate = new \DateTimeImmutable ('-4 days ' );
9090
91- $ this ->givenApi ()->getAirPollution () ->getHistory ($ latitude , $ longitude , $ startDate , $ endDate );
91+ $ this ->givenApi ()->airPollution ->getHistory ($ latitude , $ longitude , $ startDate , $ endDate );
9292 }
9393
9494 #[DataProviderExternal(InvalidParamDataProvider::class, 'provideInvalidPastDateData ' )]
@@ -98,7 +98,7 @@ public function testAirPollutionGetHistoryWithInvalidPastStartDate(
9898 )
9999 {
100100 $ this ->expectException ($ expectedException );
101- $ this ->givenApi ()->getAirPollution () ->getHistory (
101+ $ this ->givenApi ()->airPollution ->getHistory (
102102 50 ,
103103 50 ,
104104 $ startDate ,
@@ -113,7 +113,7 @@ public function testAirPollutionGetHistoryWithInvalidPastEndDate(
113113 )
114114 {
115115 $ this ->expectException ($ expectedException );
116- $ this ->givenApi ()->getAirPollution () ->getHistory (
116+ $ this ->givenApi ()->airPollution ->getHistory (
117117 50 ,
118118 50 ,
119119 new \DateTimeImmutable ('-5 days ' , new \DateTimeZone ('UTC ' )),
@@ -129,7 +129,7 @@ public function testAirPollutionGetHistoryWithInvalidDateRange(
129129 )
130130 {
131131 $ this ->expectException ($ expectedException );
132- $ this ->givenApi ()->getAirPollution () ->getHistory (50 , 50 , $ startDate , $ endDate );
132+ $ this ->givenApi ()->airPollution ->getHistory (50 , 50 , $ startDate , $ endDate );
133133 }
134134
135135 // --- ASSERT METHODS EXIST ---
0 commit comments