Skip to content

Commit 8eff8dc

Browse files
committed
Add support for PHPUnit 10
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
1 parent f1d82f0 commit 8eff8dc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
"ext-dbase": "For dbf files parsing"
3737
},
3838
"require-dev": {
39-
"phpstan/phpstan": "^1.10",
4039
"phpmyadmin/coding-standard": "^3.0.0",
40+
"phpstan/phpstan": "^1.10",
4141
"phpstan/phpstan-phpunit": "^1.3",
42-
"phpunit/phpunit": "^7.4 || ^8 || ^9"
42+
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.3"
4343
},
4444
"autoload": {
4545
"psr-4": {

tests/ShapeFileTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testLoad(string $filename, int $records, ?int $parts): void
6161
*
6262
* @return array
6363
*/
64-
public function provideFiles(): array
64+
public static function provideFiles(): array
6565
{
6666
return [
6767
[
@@ -141,7 +141,7 @@ public function testGetDBFHeader(): void
141141
*
142142
* @return array
143143
*/
144-
public function provideErrorFiles(): array
144+
public static function provideErrorFiles(): array
145145
{
146146
$result = [
147147
['data/no-shp.*'],
@@ -406,7 +406,7 @@ public function testMeasureShapeSaveLoad(int $type, array $points): void
406406
*
407407
* @return array
408408
*/
409-
public function shapes(): array
409+
public static function shapes(): array
410410
{
411411
return [
412412
[

tests/UtilTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testLoadData(string $type, $data, $expected): void
5151
*
5252
* @return array
5353
*/
54-
public function data(): array
54+
public static function data(): array
5555
{
5656
return [
5757
[

0 commit comments

Comments
 (0)