Skip to content

Commit 4f2dc3e

Browse files
committed
ci(phpunit): migrate config
1 parent 9780d24 commit 4f2dc3e

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

phpunit.xml.dist

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
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+
<source>
1719
<include>
18-
<directory suffix=".php">src</directory>
20+
<directory>src</directory>
1921
</include>
20-
</coverage>
22+
</source>
2123
</phpunit>

tests/Common/ConfigTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function testSet(bool|int|string $value, string $expected): void
2020
}
2121

2222
/** @return Generator<array{mixed, string}> */
23-
public function providerSet(): Generator
23+
public static function providerSet(): Generator
2424
{
2525
yield [true, 'true'];
2626
yield [false, 'false'];

0 commit comments

Comments
 (0)