Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.27",
"nette/php-generator": "^4.0",
"phpunit/phpunit": "^9.6.13",
"phpunit/phpunit": "^10.5",
"phpstan/phpstan": "^2.0"
},
"autoload": {
Expand Down
32 changes: 13 additions & 19 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
bootstrap="vendor/autoload.php"
executionOrder="depends,defects"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
colors="true"
verbose="true"
>
<coverage>
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="default">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php"
executionOrder="depends,defects" beStrictAboutOutputDuringTests="true" colors="true"
cacheDirectory=".phpunit.cache" beStrictAboutCoverageMetadata="true">
<testsuites>
<testsuite name="default">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
</phpunit>
10 changes: 5 additions & 5 deletions tests/TupleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function testTupleArity(array $values, int $arity): void
self::assertEquals($arity, Tuple::of(...$values)->arity());
}

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

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

public function concatTestData(): array
public static function concatTestData(): array
{
return TupleConcatTestHelper::concatTestData();
}
Expand All @@ -119,7 +119,7 @@ public function testTupleAppend(array $expected, array $values, string $appendVa
self::assertEquals($expected, Tuple::of(...$values)->append($appendValue)->toArray());
}

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

public function prependTestData(): array
public static function prependTestData(): array
{
return [
[['h', 'a', 'b', 'c', 'd', 'e', 'f', 'g'], ['a', 'b', 'c', 'd', 'e', 'f', 'g'], 'h'],
Expand Down
Loading