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 eed711e commit 2af5262
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"composer/semver": "^3.4"
},
"require-dev": {
"phpunit/phpunit": "^9.6"
"phpunit/phpunit": "^11.3"
}
}
6 changes: 3 additions & 3 deletions tests/BranchLogicTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class BranchLogicTest extends TestCase
{
public function provideGetCmsMajor(): array
public static function provideGetCmsMajor(): array
{
return [
'empty' => [
Expand Down Expand Up @@ -238,7 +238,7 @@ public function testGetCmsMajor(
$this->assertSame($expected, $cmsMajor);
}

public function provideGetBranchesForMergeUp(): array
public static function provideGetBranchesForMergeUp(): array
{
return [
'no branches' => [
Expand Down Expand Up @@ -805,7 +805,7 @@ public function testGetBranchesForMergeUp(
$this->assertSame($expected, $branches);
}

public function provideGetBranchesForMergeUpExceptions(): array
public static function provideGetBranchesForMergeUpExceptions(): array
{
return [
'Incorrect default branch for random module' => [
Expand Down
8 changes: 4 additions & 4 deletions tests/MetaDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class MetaDataTest extends TestCase
{
public function provideGetMetaDataForRepository(): array
public static function provideGetMetaDataForRepository(): array
{
return [
'missing repo' => [
Expand Down Expand Up @@ -65,7 +65,7 @@ public function testGetMetaDataForRepositoryInvalid(): void
MetaData::getMetaDataForRepository('');
}

public function provideGetMetaDataByPackagistName(): array
public static function provideGetMetaDataByPackagistName(): array
{
return [
'missing repo' => [
Expand Down Expand Up @@ -103,7 +103,7 @@ public function testGetMetaDataByPackagistNameInvalid(): void
MetaData::getMetaDataByPackagistName('');
}

public function provideGetMetaDataForLocksteppedRepos(): array
public static function provideGetMetaDataForLocksteppedRepos(): array
{
return [
'module skeleton not lockstepped' => [
Expand Down Expand Up @@ -140,7 +140,7 @@ public function testGetMetaDataForLocksteppedRepos(string $repoName, bool $isLoc
}
}

public function provideRemoveReposNotInCmsMajor(): array
public static function provideRemoveReposNotInCmsMajor(): array
{
return [
'int major, no wildcard' => [
Expand Down

0 comments on commit 2af5262

Please sign in to comment.