44
55use Netgen \Bundle \OpenWeatherMapBundle \API \OpenWeatherMap \Weather \WeatherInterface ;
66use Netgen \Bundle \OpenWeatherMapBundle \Cache \HandlerInterface ;
7- use Netgen \Bundle \OpenWeatherMapBundle \Cache \Null ;
7+ use Netgen \Bundle \OpenWeatherMapBundle \Cache \NoCache ;
88use Netgen \Bundle \OpenWeatherMapBundle \Core \Weather ;
99use Netgen \Bundle \OpenWeatherMapBundle \Http \HttpClient ;
1010use Netgen \Bundle \OpenWeatherMapBundle \Http \HttpClientInterface ;
@@ -24,7 +24,7 @@ public function testInstanceOfWeatherInterface()
2424
2525 public function testFetchForecastByCityName ()
2626 {
27- $ cacheHandler = $ this ->getMockBuilder (Null ::class)
27+ $ cacheHandler = $ this ->getMockBuilder (NoCache ::class)
2828 ->disableOriginalConstructor ()
2929 ->setMethods (array ('has ' , 'set ' ))
3030 ->getMock ();
@@ -54,7 +54,7 @@ public function testFetchForecastByCityName()
5454
5555 public function testFetchForecastByCityNameWithoutCountryCode ()
5656 {
57- $ cacheHandler = $ this ->getMockBuilder (Null ::class)
57+ $ cacheHandler = $ this ->getMockBuilder (NoCache ::class)
5858 ->disableOriginalConstructor ()
5959 ->setMethods (array ('has ' , 'set ' ))
6060 ->getMock ();
@@ -84,7 +84,7 @@ public function testFetchForecastByCityNameWithoutCountryCode()
8484
8585 public function testFetchForecastByCityId ()
8686 {
87- $ cacheHandler = $ this ->getMockBuilder (Null ::class)
87+ $ cacheHandler = $ this ->getMockBuilder (NoCache ::class)
8888 ->disableOriginalConstructor ()
8989 ->setMethods (array ('has ' , 'set ' ))
9090 ->getMock ();
@@ -114,7 +114,7 @@ public function testFetchForecastByCityId()
114114
115115 public function testFetchForecastByZipCode ()
116116 {
117- $ cacheHandler = $ this ->getMockBuilder (Null ::class)
117+ $ cacheHandler = $ this ->getMockBuilder (NoCache ::class)
118118 ->disableOriginalConstructor ()
119119 ->setMethods (array ('has ' , 'set ' ))
120120 ->getMock ();
@@ -144,7 +144,7 @@ public function testFetchForecastByZipCode()
144144
145145 public function testFetchForecastByZipCodeWithoutCountryCode ()
146146 {
147- $ cacheHandler = $ this ->getMockBuilder (Null ::class)
147+ $ cacheHandler = $ this ->getMockBuilder (NoCache ::class)
148148 ->disableOriginalConstructor ()
149149 ->setMethods (array ('has ' , 'set ' ))
150150 ->getMock ();
@@ -174,7 +174,7 @@ public function testFetchForecastByZipCodeWithoutCountryCode()
174174
175175 public function testFetchForecastByCityGeographicCoordinates ()
176176 {
177- $ cacheHandler = $ this ->getMockBuilder (Null ::class)
177+ $ cacheHandler = $ this ->getMockBuilder (NoCache ::class)
178178 ->disableOriginalConstructor ()
179179 ->setMethods (array ('has ' , 'set ' ))
180180 ->getMock ();
@@ -204,7 +204,7 @@ public function testFetchForecastByCityGeographicCoordinates()
204204
205205 public function testFetchWeatherDataForCitiesWithinRectangleZone ()
206206 {
207- $ cacheHandler = $ this ->getMockBuilder (Null ::class)
207+ $ cacheHandler = $ this ->getMockBuilder (NoCache ::class)
208208 ->disableOriginalConstructor ()
209209 ->setMethods (array ('has ' , 'set ' ))
210210 ->getMock ();
@@ -238,7 +238,7 @@ public function testFetchWeatherDataForCitiesWithinRectangleZone()
238238
239239 public function testFetchWeatherDataForCitiesInCycle ()
240240 {
241- $ cacheHandler = $ this ->getMockBuilder (Null ::class)
241+ $ cacheHandler = $ this ->getMockBuilder (NoCache ::class)
242242 ->disableOriginalConstructor ()
243243 ->setMethods (array ('has ' , 'set ' ))
244244 ->getMock ();
@@ -268,7 +268,7 @@ public function testFetchWeatherDataForCitiesInCycle()
268268
269269 public function testFetchWeatherDataForSeveralCityIds ()
270270 {
271- $ cacheHandler = $ this ->getMockBuilder (Null ::class)
271+ $ cacheHandler = $ this ->getMockBuilder (NoCache ::class)
272272 ->disableOriginalConstructor ()
273273 ->setMethods (array ('has ' , 'set ' ))
274274 ->getMock ();
0 commit comments