Skip to content

Commit 715f61b

Browse files
author
Dmytro Vyshnevskyi
committed
fix deprecations
1 parent 9330500 commit 715f61b

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

src/Core/phpunit.xml.dist

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4-
backupGlobals="false"
5-
colors="true"
6-
bootstrap="vendor/autoload.php"
7-
failOnRisky="true"
8-
failOnWarning="true"
9-
>
10-
<coverage>
11-
<include>
12-
<directory>./src</directory>
13-
</include>
14-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" failOnRisky="true" failOnWarning="true">
153
<php>
164
<ini name="error_reporting" value="-1"/>
175
</php>
@@ -20,4 +8,9 @@
208
<directory>./tests/</directory>
219
</testsuite>
2210
</testsuites>
11+
<source>
12+
<include>
13+
<directory>./src</directory>
14+
</include>
15+
</source>
2316
</phpunit>

src/Core/tests/Unit/Signer/SignerV4Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testSignsRequests($rawRequest, $rawExpected)
7878
self::assertEquals($expected, $request);
7979
}
8080

81-
public function provideRequests()
81+
public static function provideRequests()
8282
{
8383
return [
8484
// POST headers should be signed.
@@ -158,7 +158,7 @@ public function testSignsRequestsWithArrayInQueryParams($rawRequestWithoutQuery,
158158
self::assertEquals($expected, $request);
159159
}
160160

161-
private function provideRequestsWithQueryParams()
161+
public static function provideRequestsWithQueryParams()
162162
{
163163
return [
164164
// GET Case with array in query params

0 commit comments

Comments
 (0)