Skip to content

Commit

Permalink
ci(phpunit): migrate config
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Sep 30, 2023
1 parent 9780d24 commit 7c24d15
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"phpstan/phpstan": "1.10.11",
"phpstan/phpstan-phpunit": "1.3.11",
"phpstan/phpstan-strict-rules": "1.5.1",
"phpunit/phpunit": "^10.0",
"phpunit/phpunit": "^10.3",
"psalm/plugin-phpunit": "^0.18.0",
"roave/infection-static-analysis-plugin": "^1.7",
"thecodingmachine/phpstan-safe-rule": "^1.0",
Expand Down
24 changes: 13 additions & 11 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
<?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>
2 changes: 1 addition & 1 deletion tests/Common/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function testSet(bool|int|string $value, string $expected): void
}

/** @return Generator<array{mixed, string}> */
public function providerSet(): Generator
public static function providerSet(): Generator
{
yield [true, 'true'];
yield [false, 'false'];
Expand Down

0 comments on commit 7c24d15

Please sign in to comment.