Skip to content

Commit

Permalink
Add support for PHPUnit 10
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
  • Loading branch information
MauricioFauth committed Sep 11, 2023
1 parent f1d82f0 commit 8eff8dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"ext-dbase": "For dbf files parsing"
},
"require-dev": {
"phpstan/phpstan": "^1.10",
"phpmyadmin/coding-standard": "^3.0.0",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^7.4 || ^8 || ^9"
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.3"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 3 additions & 3 deletions tests/ShapeFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function testLoad(string $filename, int $records, ?int $parts): void
*
* @return array
*/
public function provideFiles(): array
public static function provideFiles(): array
{
return [
[
Expand Down Expand Up @@ -141,7 +141,7 @@ public function testGetDBFHeader(): void
*
* @return array
*/
public function provideErrorFiles(): array
public static function provideErrorFiles(): array
{
$result = [
['data/no-shp.*'],
Expand Down Expand Up @@ -406,7 +406,7 @@ public function testMeasureShapeSaveLoad(int $type, array $points): void
*
* @return array
*/
public function shapes(): array
public static function shapes(): array
{
return [
[
Expand Down
2 changes: 1 addition & 1 deletion tests/UtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function testLoadData(string $type, $data, $expected): void
*
* @return array
*/
public function data(): array
public static function data(): array
{
return [
[
Expand Down

0 comments on commit 8eff8dc

Please sign in to comment.