File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1717 "php-http/client-common" : " ^2.7" ,
1818 "php-http/discovery" : " ^1.18" ,
1919 "php-http/logger-plugin" : " ^1.3" ,
20- "programmatordev/yet-another-php-validator" : " ^0.2 " ,
20+ "programmatordev/yet-another-php-validator" : " ^0.4 " ,
2121 "psr/cache" : " ^2.0 || ^3.0" ,
2222 "psr/http-client" : " ^1.0" ,
2323 "psr/http-factory" : " ^1.0" ,
Original file line number Diff line number Diff line change 55use Nyholm \Psr7 \Response ;
66use ProgrammatorDev \OpenWeatherMap \Endpoint \AbstractEndpoint ;
77use ProgrammatorDev \OpenWeatherMap \OpenWeatherMap ;
8+ use Psr \Cache \CacheItemInterface ;
89use Psr \Cache \CacheItemPoolInterface ;
910use Psr \Log \LoggerInterface ;
1011
@@ -17,6 +18,10 @@ public function testAbstractEndpointWithCache()
1718 );
1819
1920 $ cache = $ this ->createMock (CacheItemPoolInterface::class);
21+ $ cache ->method ('getItem ' )->willReturn (
22+ $ this ->createMock (CacheItemInterface::class)
23+ );
24+
2025 $ cache ->expects ($ this ->once ())->method ('save ' );
2126
2227 $ api = $ this ->givenApi ();
You can’t perform that action at this time.
0 commit comments