Skip to content

Commit

Permalink
Updates to phpunit/phpunit to ^9 || ^10
Browse files Browse the repository at this point in the history
  • Loading branch information
mradcliffe committed Jun 14, 2024
1 parent 773c8dc commit c85e543
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"require-dev": {
"ext-openssl": "*",
"phpunit/phpunit": "^8 || ^9",
"phpunit/phpunit": "^9 || ^10",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^1.10",
"squizlabs/php_codesniffer": "~3.5"
Expand Down
12 changes: 6 additions & 6 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="tests/bootstrap.php"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory>src</directory>
</include>
</coverage>
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd">
<testsuites>
<testsuite name="Xero Client Test Suite">
<directory>tests</directory>
<exclude>vendor</exclude>
</testsuite>
</testsuites>
<source>
<include>
<directory>src</directory>
</include>
</source>
</phpunit>
4 changes: 2 additions & 2 deletions tests/src/XeroProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testGetValidScopes(array $expected, ?string $api = ''): void
/**
* @return array<int,mixed>
*/
public function validScopesProvider(): array
public static function validScopesProvider(): array
{
return [
[['offline_access'], null],
Expand Down Expand Up @@ -143,7 +143,7 @@ public function testGetResponseMessage(array $data, string $expected): void
*
* @return array<string,mixed>
*/
public function provideResponseData(): array
public static function provideResponseData(): array
{
return [
'invalid client' => [['error' => 'invalid_client'], 'Invalid client credentials'],
Expand Down

0 comments on commit c85e543

Please sign in to comment.