Skip to content

Commit bd8983b

Browse files
authored
Release/3.0.3 - (#28)
1 parent 827a8c3 commit bd8983b

File tree

6 files changed

+40
-19
lines changed

6 files changed

+40
-19
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v3
1818

19+
- name: Use PHP 8.2
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: '8.2'
23+
1924
- name: Install dependencies
2025
run: composer update --no-progress --optimize-autoloader
2126

@@ -33,6 +38,11 @@ jobs:
3338
- name: Checkout
3439
uses: actions/checkout@v3
3540

41+
- name: Use PHP 8.2
42+
uses: shivammathur/setup-php@v2
43+
with:
44+
php-version: '8.2'
45+
3646
- name: Install dependencies
3747
run: composer update --no-progress --optimize-autoloader
3848

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.idea
2-
vendor
3-
report
4-
composer.lock
5-
.phpunit.result.cache
2+
3+
/vendor/
4+
/report
5+
*.lock
6+
.phpunit.*

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
},
4343
"require": {
4444
"php": "^8.2",
45-
"tiny-blocks/serializer": "^2.0",
45+
"tiny-blocks/serializer": "^3.0",
4646
"psr/http-message": "^1.1",
4747
"ext-mbstring": "*"
4848
},
4949
"require-dev": {
5050
"infection/infection": "^0.27",
5151
"phpmd/phpmd": "^2.15",
52-
"phpunit/phpunit": "^9.6",
52+
"phpunit/phpunit": "^10",
5353
"squizlabs/php_codesniffer": "^3.8"
5454
},
5555
"suggest": {

phpunit.xml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
bootstrap="vendor/autoload.php"
4-
cacheResultFile="report/.phpunit.result.cache"
54
backupGlobals="false"
6-
backupStaticAttributes="false"
7-
colors="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
11-
processIsolation="false"
5+
colors="true" processIsolation="false"
126
stopOnFailure="false"
13-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
7+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
8+
cacheDirectory=".phpunit.cache"
9+
backupStaticProperties="false">
10+
11+
<coverage>
12+
<report>
13+
<clover outputFile="report/coverage-clover.xml"/>
14+
<html outputDirectory="report/html/"/>
15+
<text outputFile="report/coverage.txt"/>
16+
</report>
17+
</coverage>
18+
1419
<testsuites>
1520
<testsuite name="default">
1621
<directory suffix="Test.php">tests</directory>
1722
</testsuite>
1823
</testsuites>
1924

20-
<coverage>
25+
<logging>
26+
<junit outputFile="report/execution-result.xml"/>
27+
</logging>
28+
29+
<source>
2130
<include>
2231
<directory suffix=".php">src</directory>
2332
</include>
24-
</coverage>
33+
</source>
34+
2535
</phpunit>

tests/HttpCodeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testIsHttpCode(int $httpCode, bool $expected): void
2626
self::assertEquals($expected, $actual);
2727
}
2828

29-
public function providerForTestMessage(): array
29+
public static function providerForTestMessage(): array
3030
{
3131
return [
3232
[
@@ -64,7 +64,7 @@ public function providerForTestMessage(): array
6464
];
6565
}
6666

67-
public function providerForTestIsHttpCode(): array
67+
public static function providerForTestIsHttpCode(): array
6868
{
6969
return [
7070
[

tests/HttpResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function testResponseInternalServerError(mixed $data, mixed $expected): v
117117
self::assertEquals($this->defaultHeaderFrom(code: HttpCode::INTERNAL_SERVER_ERROR), $response->getHeaders());
118118
}
119119

120-
public function providerData(): array
120+
public static function providerData(): array
121121
{
122122
return [
123123
[

0 commit comments

Comments
 (0)