Skip to content

Commit

Permalink
Add support for PHPUnit 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvbeek committed Nov 19, 2024
1 parent 23885e6 commit d02051d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ test:
<<: *set_exclude_group
script:
- composer install
- vendor/bin/phpunit --migrate-configuration || true
- vendor/bin/phpunit --coverage-text --colors=never --coverage-cobertura=phpunitresult/cobertura-coverage.xml --log-junit=phpunitresult/junit.xml $EXCLUDE_GROUP
- sed -i 's~ filename="~ filename="src/~' phpunitresult/cobertura-coverage.xml
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"mikey179/vfsstream": "^1.6.7",
"phpmd/phpmd": "^2.10",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^9.5 || ^10.0",
"slevomat/coding-standard": "^8.14",
"squizlabs/php_codesniffer": "^3.7",
"symplify/easy-coding-standard": "^12.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/Retrievers/RetrieverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function weGetTheRetrieverWithTheFactoryIfWeInstantiateWithIt(): void
$this->assertEquals($factory, $retriever->getFinderFactory());
}

public function hashMethodsProvider(): array
public static function hashMethodsProvider(): array
{
return [
'with failures' => ['getHash'],
Expand Down

0 comments on commit d02051d

Please sign in to comment.