Skip to content

Commit

Permalink
chore(deps): update dependency phpunit/phpunit to v10 (#136)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
renovate[bot] authored May 11, 2023
1 parent 9dcf01a commit dfb2b1b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"phpstan/phpstan": "^1.3",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.1",
"phpunit/phpunit": "^9.6",
"phpunit/phpunit": "^10.1",
"psalm/plugin-phpunit": "^0.18.0",
"roave/infection-static-analysis-plugin": "^1.31",
"thecodingmachine/phpstan-safe-rule": "^1.0",
Expand Down
25 changes: 14 additions & 11 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
executionOrder="random"
colors="true"
bootstrap="tests/bootstrap.php"
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
executionOrder="random"
colors="true"
bootstrap="tests/bootstrap.php"
>
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<coverage/>

<source>
<include>
<directory suffix=".php">src</directory>
<directory>src</directory>
</include>
</coverage>
</source>
</phpunit>
6 changes: 3 additions & 3 deletions tests/Type/DateTimeTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testSerialize(string $expectedValue, DateTimeInterface $dateTime
}

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

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

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

0 comments on commit dfb2b1b

Please sign in to comment.