diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ad4c0c..4ad1080 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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+\%/' diff --git a/composer.json b/composer.json index b3ac8ee..25e20d8 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/tests/Retrievers/RetrieverTest.php b/tests/Retrievers/RetrieverTest.php index 3037d82..aef13eb 100644 --- a/tests/Retrievers/RetrieverTest.php +++ b/tests/Retrievers/RetrieverTest.php @@ -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'],