Skip to content

Commit

Permalink
PHPUnit 10 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindelius authored Nov 16, 2024
1 parent 75f03ab commit 82c9485
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lindelius/php-fide",
"description": "A zero-dependency PHP implementation of the FIDE Rating System.",
"keywords": ["elo", "rating", "fide"],
"keywords": ["chess", "elo", "fide", "rating"],
"homepage": "https://github.com/lindelius/php-fide",
"license": "Apache-2.0",
"authors": [
Expand All @@ -15,7 +15,7 @@
},
"require-dev": {
"phpbench/phpbench": "^1.3",
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^10.5"
},
"autoload": {
"psr-4": {
Expand All @@ -27,5 +27,8 @@
"Lindelius\\FIDE\\Benchmarks\\": "benchmarks/",
"Lindelius\\FIDE\\Tests\\": "tests/"
}
},
"scripts": {
"test": "vendor/bin/phpunit --testsuite Unit"
}
}
4 changes: 1 addition & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="./vendor/autoload.php"
beStrictAboutChangesToGlobalState="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
colors="true"
executionOrder="random"
noInteraction="true"
testdox="true">
<testsuites>
<testsuite name="Unit">
Expand Down
6 changes: 3 additions & 3 deletions tests/RatingSystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function testRatingAfterDraw(ContestantInterface $contestant, ContestantI
);
}

public function provideRatingAfterDraw(): array
public static function provideRatingAfterDraw(): array
{
return [

Expand Down Expand Up @@ -116,7 +116,7 @@ public function testRatingAfterLoss(ContestantInterface $contestant, ContestantI
);
}

public function provideRatingAfterLoss(): array
public static function provideRatingAfterLoss(): array
{
return [

Expand Down Expand Up @@ -203,7 +203,7 @@ public function testRatingAfterWin(ContestantInterface $contestant, ContestantIn
);
}

public function provideRatingAfterWin(): array
public static function provideRatingAfterWin(): array
{
return [

Expand Down

0 comments on commit 82c9485

Please sign in to comment.