Skip to content

Commit b897c5c

Browse files
authored
bump phpunit to 10 (#114)
1 parent f2be40e commit b897c5c

File tree

3 files changed

+19
-25
lines changed

3 files changed

+19
-25
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"require-dev": {
1616
"friendsofphp/php-cs-fixer": "^3.27",
1717
"nette/php-generator": "^4.0",
18-
"phpunit/phpunit": "^9.6.13",
18+
"phpunit/phpunit": "^10.5",
1919
"phpstan/phpstan": "^2.0"
2020
},
2121
"autoload": {

phpunit.xml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
4-
bootstrap="vendor/autoload.php"
5-
executionOrder="depends,defects"
6-
beStrictAboutCoversAnnotation="true"
7-
beStrictAboutOutputDuringTests="true"
8-
beStrictAboutTodoAnnotatedTests="true"
9-
colors="true"
10-
verbose="true"
11-
>
12-
<coverage>
13-
<include>
14-
<directory suffix=".php">src</directory>
15-
</include>
16-
</coverage>
17-
<testsuites>
18-
<testsuite name="default">
19-
<directory suffix="Test.php">tests</directory>
20-
</testsuite>
21-
</testsuites>
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php"
4+
executionOrder="depends,defects" beStrictAboutOutputDuringTests="true" colors="true"
5+
cacheDirectory=".phpunit.cache" beStrictAboutCoverageMetadata="true">
6+
<testsuites>
7+
<testsuite name="default">
8+
<directory suffix="Test.php">tests</directory>
9+
</testsuite>
10+
</testsuites>
11+
<source>
12+
<include>
13+
<directory suffix=".php">src</directory>
14+
</include>
15+
</source>
2216
</phpunit>

tests/TupleTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testTupleArity(array $values, int $arity): void
2222
self::assertEquals($arity, Tuple::of(...$values)->arity());
2323
}
2424

25-
public function arityTestData(): array
25+
public static function arityTestData(): array
2626
{
2727
return [
2828
[['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], 8],
@@ -69,7 +69,7 @@ public function testTupleToArray(array $values): void
6969
self::assertEquals($values, Tuple::of(...$values)->toArray());
7070
}
7171

72-
public function toArrayTestData(): array
72+
public static function toArrayTestData(): array
7373
{
7474
return [
7575
[['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']],
@@ -97,7 +97,7 @@ public function testTupleConcat(array $firstValues, array $secondValues, string
9797
self::assertEquals($result, $newTuple->toArray());
9898
}
9999

100-
public function concatTestData(): array
100+
public static function concatTestData(): array
101101
{
102102
return TupleConcatTestHelper::concatTestData();
103103
}
@@ -119,7 +119,7 @@ public function testTupleAppend(array $expected, array $values, string $appendVa
119119
self::assertEquals($expected, Tuple::of(...$values)->append($appendValue)->toArray());
120120
}
121121

122-
public function appendTestData(): array
122+
public static function appendTestData(): array
123123
{
124124
return [
125125
[['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'], ['a', 'b', 'c', 'd', 'e', 'f', 'g'], 'h'],
@@ -141,7 +141,7 @@ public function testTuplePrepend(array $expected, array $values, string $appendV
141141
self::assertEquals($expected, Tuple::of(...$values)->prepend($appendValue)->toArray());
142142
}
143143

144-
public function prependTestData(): array
144+
public static function prependTestData(): array
145145
{
146146
return [
147147
[['h', 'a', 'b', 'c', 'd', 'e', 'f', 'g'], ['a', 'b', 'c', 'd', 'e', 'f', 'g'], 'h'],

0 commit comments

Comments
 (0)