Skip to content

Commit 35bc536

Browse files
renovate[bot]simPod
authored andcommitted
chore(deps): update dependency phpunit/phpunit to v10
1 parent 03f4403 commit 35bc536

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
},
2525
"require-dev": {
2626
"doctrine/coding-standard": "^12.0",
27-
"infection/infection": "^0.26.0",
27+
"infection/infection": "^0.26.21",
2828
"phpstan/extension-installer": "^1.1",
2929
"phpstan/phpstan": "^1.3",
3030
"phpstan/phpstan-phpunit": "^1.0",
3131
"phpstan/phpstan-strict-rules": "^1.1",
32-
"phpunit/phpunit": "^10.0",
32+
"phpunit/phpunit": "^10.1",
3333
"psalm/plugin-phpunit": "^0.18.0",
34-
"roave/infection-static-analysis-plugin": "^1.7",
34+
"roave/infection-static-analysis-plugin": "^1.31",
3535
"thecodingmachine/phpstan-safe-rule": "^1.0",
3636
"vimeo/psalm": "^5.0"
3737
},

phpunit.xml.dist

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4-
beStrictAboutChangesToGlobalState="true"
5-
beStrictAboutOutputDuringTests="true"
6-
beStrictAboutTodoAnnotatedTests="true"
7-
executionOrder="random"
8-
colors="true"
9-
bootstrap="tests/bootstrap.php"
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5+
beStrictAboutChangesToGlobalState="true"
6+
beStrictAboutOutputDuringTests="true"
7+
beStrictAboutTodoAnnotatedTests="true"
8+
executionOrder="random"
9+
colors="true"
10+
bootstrap="tests/bootstrap.php"
1011
>
1112
<testsuites>
1213
<testsuite name="Test Suite">
1314
<directory>tests</directory>
1415
</testsuite>
1516
</testsuites>
16-
<coverage>
17+
<coverage/>
18+
19+
<source>
1720
<include>
18-
<directory suffix=".php">src</directory>
21+
<directory>src</directory>
1922
</include>
20-
</coverage>
23+
</source>
2124
</phpunit>

tests/Type/DateTimeTypeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function testSerialize(string $expectedValue, DateTimeInterface $dateTime
2828
}
2929

3030
/** @return Generator<int, array{string, DateTimeInterface}> */
31-
public function dateProviderSerialize(): Generator
31+
public static function dateProviderSerialize(): Generator
3232
{
3333
yield ['2018-12-31T01:02:03+00:00', new DateTime('2018-12-31 01:02:03')];
3434
yield ['2018-12-31T01:02:03+00:00', new DateTimeImmutable('2018-12-31 01:02:03')];
@@ -55,7 +55,7 @@ public function testParseValue(string $valueToParse, DateTimeImmutable $expected
5555
}
5656

5757
/** @return Generator<string, array{string, DateTimeImmutable}> */
58-
public function dataProviderParseValue(): Generator
58+
public static function dataProviderParseValue(): Generator
5959
{
6060
// Datetime with hours, minutes and seconds
6161
yield 'timezone #1' => ['2016-11-01T00:00:00-11:00', new DateTimeImmutable('2016-11-01 11:00:00')];
@@ -93,7 +93,7 @@ public function testParseValueInvalidFormatOrValue(string $value): void
9393
}
9494

9595
/** @return Generator<int, array{string}> */
96-
public function dataProviderParseValueInvalidFormatOrValue(): Generator
96+
public static function dataProviderParseValueInvalidFormatOrValue(): Generator
9797
{
9898
yield ['2021-02-29T00:00:00Z'];
9999
yield ['1900-02-29T00:00:00Z'];

0 commit comments

Comments
 (0)