Skip to content

Commit

Permalink
DEP Use PHPUnit 11
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Sep 6, 2024
1 parent 45cb904 commit e48f82c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"silverstripe/vendor-plugin": "^2"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"phpunit/phpunit": "^11.3",
"squizlabs/php_codesniffer": "^3.7",
"silverstripe/cms": "^6",
"silverstripe/frameworktest": "^2",
Expand Down
4 changes: 2 additions & 2 deletions tests/Controllers/HistoryViewerControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function testVersionFormReturnsVersionForm()
$this->assertSame('mocked', $result);
}

public function provideApiRead(): array
public static function provideApiRead(): array
{
return [
'Valid' => [
Expand Down Expand Up @@ -404,7 +404,7 @@ public function testApiRead(
}
}

public function provideApiRevert(): array
public static function provideApiRevert(): array
{
return [
'Valid' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/Extensions/FileArchiveExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function testIsArchiveFieldEnabled(
$this->assertSame($expected, $actual);
}

public function provideIsArchiveFieldEnabled(): array
public static function provideIsArchiveFieldEnabled(): array
{
return [
[
Expand Down
2 changes: 1 addition & 1 deletion tests/Forms/DiffFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function testEscaping(
$this->assertSame($expected, $diffField->Value(), $message);
}

public function provideEscaping()
public static function provideEscaping()
{
return [
[
Expand Down

0 comments on commit e48f82c

Please sign in to comment.