Skip to content

Commit c85e543

Browse files
committed
Updates to phpunit/phpunit to ^9 || ^10
1 parent 773c8dc commit c85e543

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"require-dev": {
3333
"ext-openssl": "*",
34-
"phpunit/phpunit": "^8 || ^9",
34+
"phpunit/phpunit": "^9 || ^10",
3535
"phpspec/prophecy-phpunit": "^2.0",
3636
"phpstan/phpstan": "^1.10",
3737
"squizlabs/php_codesniffer": "~3.5"

phpunit.xml.dist

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
bootstrap="tests/bootstrap.php"
5-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
6-
<coverage>
7-
<include>
8-
<directory>src</directory>
9-
</include>
10-
</coverage>
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd">
116
<testsuites>
127
<testsuite name="Xero Client Test Suite">
138
<directory>tests</directory>
149
<exclude>vendor</exclude>
1510
</testsuite>
1611
</testsuites>
12+
<source>
13+
<include>
14+
<directory>src</directory>
15+
</include>
16+
</source>
1717
</phpunit>

tests/src/XeroProviderTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function testGetValidScopes(array $expected, ?string $api = ''): void
4141
/**
4242
* @return array<int,mixed>
4343
*/
44-
public function validScopesProvider(): array
44+
public static function validScopesProvider(): array
4545
{
4646
return [
4747
[['offline_access'], null],
@@ -143,7 +143,7 @@ public function testGetResponseMessage(array $data, string $expected): void
143143
*
144144
* @return array<string,mixed>
145145
*/
146-
public function provideResponseData(): array
146+
public static function provideResponseData(): array
147147
{
148148
return [
149149
'invalid client' => [['error' => 'invalid_client'], 'Invalid client credentials'],

0 commit comments

Comments
 (0)