Skip to content

Commit 1a78e35

Browse files
Merge pull request #44 from franmomu/update_phpunit
Bump to phpunit 9.5
2 parents 4efcd4b + b9392c4 commit 1a78e35

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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": {

phpunit.xml.dist

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@
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>

tests/RatesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)