File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1515 "ext-json" : " *"
1616 },
1717 "require-dev" : {
18- "phpunit/phpunit" : " ^8.5.2 " ,
18+ "phpunit/phpunit" : " ^9.5 " ,
1919 "squizlabs/php_codesniffer" : " ^3.5"
2020 },
2121 "autoload" : {
Original file line number Diff line number Diff line change 2020 <directory suffix =" Test.php" >./tests</directory >
2121 </testsuite >
2222 </testsuites >
23- <filter >
24- <whitelist processUncoveredFilesFromWhitelist = " true " >
23+ <coverage processUncoveredFiles = " true " >
24+ <include >
2525 <directory suffix =" .php" >./src</directory >
26- </whitelist >
27- </filter >
26+ </include >
27+ </coverage >
28+ <php >
29+ <ini name =" error_reporting" value =" -1" />
30+ </php >
2831</phpunit >
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public function testRatesAreLoadedFromFile()
8686 // test by invalidating file and testing for exception
8787 file_put_contents ('vendor/rates ' , 'foobar ' );
8888 $ rates = new Rates ('vendor/rates ' , 30 , $ client );
89- $ this ->expectException (Error::class);
89+ $ this ->expectError (Error::class);
9090 $ this ->assertEquals (21.0 , $ rates ->getRateForCountry ('NL ' ));
9191 }
9292
You can’t perform that action at this time.
0 commit comments