Skip to content

Commit 3213cc5

Browse files
committed
TASK: Update phpunit
1 parent b10cf93 commit 3213cc5

25 files changed

Lines changed: 57 additions & 57 deletions

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ test::
77
--bootstrap vendor/autoload.php \
88
--testdox test/Integration \
99
--coverage-html build/coverage-report \
10-
--whitelist src
10+
--coverage-filter src
1111

1212
test-unit::
1313
./vendor/bin/phpunit \
1414
--enforce-time-limit \
1515
--bootstrap vendor/autoload.php \
1616
--testdox test/Unit \
1717
--coverage-html build/coverage-report \
18-
--whitelist src
18+
--coverage-filter src
1919

2020
test-filter::
2121
./vendor/bin/phpunit \

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
}
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "^9.5",
19+
"phpunit/phpunit": "^10.2",
2020
"phpstan/phpstan": "^1.10",
21-
"phpunit/php-code-coverage": "^9.2"
21+
"phpunit/php-code-coverage": "^10.1"
2222
}
2323
}

test/Integration/ParserIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class ParserIntegrationTest extends TestCase
3232
/**
3333
* @return array<string,mixed>
3434
*/
35-
public function astExamples(): array
35+
public static function astExamples(): array
3636
{
3737
return [
3838
'Comment' => ["Comment"],

test/Integration/PhpTranspilerIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ final class PhpTranspilerIntegrationTest extends TestCase
4343
/**
4444
* @return array<string,mixed>
4545
*/
46-
public function transpilerExamples(): array
46+
public static function transpilerExamples(): array
4747
{
4848
return [
4949
'Component' => ["Component"],

test/Integration/TokenizerIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class TokenizerIntegrationTest extends TestCase
3131
/**
3232
* @return array<string,mixed>
3333
*/
34-
public function tokenizationExamples(): array
34+
public static function tokenizationExamples(): array
3535
{
3636
return [
3737
'Comment' => ["Comment"],

test/Unit/Parser/Source/PathTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class PathTest extends TestCase
3030
/**
3131
* @return array<string,mixed>
3232
*/
33-
public function relatedPathExamples(): array
33+
public static function relatedPathExamples(): array
3434
{
3535
return [
3636
'(UNIX) Two unrelated, absolute paths' => [
@@ -94,4 +94,4 @@ public function resolvesRelationToOtherPath(string $pathAsString, string $otherP
9494
$path->resolveRelationTo($otherPath)->value
9595
);
9696
}
97-
}
97+
}

test/Unit/Target/Php/Transpiler/Access/AccessTranspilerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class AccessTranspilerTest extends TestCase
3737
/**
3838
* @return array<string,mixed>
3939
*/
40-
public function accessExamples(): array
40+
public static function accessExamples(): array
4141
{
4242
return [
4343
'a.b' => ['a.b', '$this->a->b'],
@@ -93,4 +93,4 @@ public function transpilesAccessNodes(string $accessAsString, string $expectedTr
9393
$actualTranspilationResult
9494
);
9595
}
96-
}
96+
}

test/Unit/Target/Php/Transpiler/Attribute/AttributeTranspilerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class AttributeTranspilerTest extends TestCase
3232
/**
3333
* @return array<string,mixed>
3434
*/
35-
public function attributeExamples(): array
35+
public static function attributeExamples(): array
3636
{
3737
return [
3838
'foo="bar"' => ['foo="bar"', 'foo="bar"'],
@@ -65,4 +65,4 @@ public function transpilesAttributeNodes(string $attributeAsString, string $expe
6565
$actualTranspilationResult
6666
);
6767
}
68-
}
68+
}

test/Unit/Target/Php/Transpiler/BinaryOperation/BinaryOperationTranspilerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class BinaryOperationTranspilerTest extends TestCase
3333
/**
3434
* @return array<string,mixed>
3535
*/
36-
public function binaryOperationExamples(): array
36+
public static function binaryOperationExamples(): array
3737
{
3838
return [
3939
'true && false' => ['true && false', '(true && false)'],

test/Unit/Target/Php/Transpiler/BooleanLiteral/BooleanLiteralTranspilerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class BooleanLiteralTranspilerTest extends TestCase
3232
/**
3333
* @return array<string,mixed>
3434
*/
35-
public function booleanLiteralExamples(): array
35+
public static function booleanLiteralExamples(): array
3636
{
3737
return [
3838
'true' => ['true', 'true'],
@@ -62,4 +62,4 @@ public function transpilesBooleanLiteralNodes(string $booleanLiteralAsString, st
6262
$actualTranspilationResult
6363
);
6464
}
65-
}
65+
}

0 commit comments

Comments
 (0)