File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1515 "php" : " ^8.4" ,
1616 "ext-zlib" : " *" ,
1717 "fig/http-message-util" : " ^1.1" ,
18- "geoip2/geoip2" : " ^3.2 " ,
18+ "geoip2/geoip2" : " ^3.3 " ,
1919 "guzzlehttp/guzzle" : " ^7.10" ,
2020 "shlinkio/shlink-config" : " ^4.0" ,
2121 "symfony/filesystem" : " ^8.0 || ^7.4"
2424 "devster/ubench" : " ^2.1" ,
2525 "phpstan/phpstan" : " ^2.1" ,
2626 "phpstan/phpstan-phpunit" : " ^2.0" ,
27- "phpunit/phpunit" : " ^12.4" ,
28- "roave/security-advisories" : " dev-master" ,
27+ "phpunit/phpunit" : " ^12.5" ,
2928 "shlinkio/php-coding-standard" : " ~2.5.0" ,
3029 "symfony/var-dumper" : " ^8.0"
3130 },
Original file line number Diff line number Diff line change 55 bootstrap =" ./vendor/autoload.php"
66 colors =" true"
77 cacheDirectory =" build/.phpunit.cache"
8- displayDetailsOnTestsThatTriggerWarnings =" true"
8+ displayDetailsOnPhpunitDeprecations =" true"
9+ displayDetailsOnTestsThatTriggerDeprecations =" true"
10+ displayDetailsOnPhpunitNotices =" true"
11+ displayDetailsOnTestsThatTriggerNotices =" true"
912>
1013 <testsuites >
1114 <testsuite name =" IpGeolocation" >
Original file line number Diff line number Diff line change 88use GuzzleHttp \Exception \ClientException ;
99use GuzzleHttp \Psr7 \Request ;
1010use GuzzleHttp \Psr7 \Response ;
11+ use PHPUnit \Framework \Attributes \AllowMockObjectsWithoutExpectations ;
1112use PHPUnit \Framework \Attributes \DataProvider ;
1213use PHPUnit \Framework \Attributes \Test ;
1314use PHPUnit \Framework \MockObject \MockObject ;
2627
2728use function sys_get_temp_dir ;
2829
30+ #[AllowMockObjectsWithoutExpectations]
2931class DbUpdaterTest extends TestCase
3032{
3133 private MockObject & ClientInterface $ httpClient ;
@@ -146,7 +148,7 @@ public static function provideInvalidLicenses(): iterable
146148 private function dbUpdater (bool $ throwOnExtract = false , string |null $ licenseKey = 'foobar ' ): DbUpdater
147149 {
148150 $ options = new GeoLite2Options ($ licenseKey , 'db_location ' , tempDir: sys_get_temp_dir ());
149- $ fileExtractor = $ this ->createMock (FileExtractorInterface::class);
151+ $ fileExtractor = $ this ->createStub (FileExtractorInterface::class);
150152
151153 if ($ throwOnExtract ) {
152154 $ fileExtractor ->method ('extractFile ' )->willThrowException (ExtractException::forInvalidCompressedFile ('' ));
You can’t perform that action at this time.
0 commit comments