Skip to content

Commit dfb2b1b

Browse files
chore(deps): update dependency phpunit/phpunit to v10 (#136)
* chore(deps): update dependency phpunit/phpunit to v10 * chore(deps): update dependency phpunit/phpunit to v10 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 9dcf01a commit dfb2b1b

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"phpstan/phpstan": "^1.3",
3030
"phpstan/phpstan-phpunit": "^1.0",
3131
"phpstan/phpstan-strict-rules": "^1.1",
32-
"phpunit/phpunit": "^9.6",
32+
"phpunit/phpunit": "^10.1",
3333
"psalm/plugin-phpunit": "^0.18.0",
3434
"roave/infection-static-analysis-plugin": "^1.31",
3535
"thecodingmachine/phpstan-safe-rule": "^1.0",

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)