Skip to content

Commit

Permalink
Update dependency phpunit/phpunit to v11 (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nathan Boiron <github@mopolo.net>
  • Loading branch information
renovate[bot] and Mopolo authored Jul 18, 2024
1 parent a8b91be commit f8f172e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "^10.1",
"phpunit/phpunit": "^11.0",
"phpstan/phpstan": "1.11.7"
}
}
20 changes: 10 additions & 10 deletions tests/MagicConstantTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,23 +367,23 @@ public static function allFormatsDataProvider(): array
return [
[
'magicConstant' => FakeMagicConstant::TYPE_STRING(),
'values' => [FakeMagicConstant::TYPE_STRING()],
'expectedValues' => [FakeMagicConstant::TYPE_STRING()],
],
[
'magicConstant' => FakeMagicConstant::TYPE_INTEGER(),
'values' => [FakeMagicConstant::TYPE_INTEGER()],
'expectedValues' => [FakeMagicConstant::TYPE_INTEGER()],
],
[
'magicConstant' => FakeMagicConstant::TYPE_ARRAY_SINGLE(),
'values' => [FakeMagicConstant::TYPE_ARRAY_SINGLE()],
'expectedValues' => [FakeMagicConstant::TYPE_ARRAY_SINGLE()],
],
[
'magicConstant' => FakeMagicConstant::TYPE_ARRAY_MULTIPLE(),
'values' => [new FakeMagicConstant('A'), new FakeMagicConstant('B'), new FakeMagicConstant('C')],
'expectedValues' => [new FakeMagicConstant('A'), new FakeMagicConstant('B'), new FakeMagicConstant('C')],
],
[
'magicConstant' => FakeMagicConstant::TYPE_ARRAY_FORMATS(),
'values' => [new FakeMagicConstant('value A'), new FakeMagicConstant('value B'), new FakeMagicConstant('value C')],
'expectedValues' => [new FakeMagicConstant('value A'), new FakeMagicConstant('value B'), new FakeMagicConstant('value C')],
],
];
}
Expand Down Expand Up @@ -429,23 +429,23 @@ public static function allValuesDataProvider(): array
return [
[
'magicConstant' => FakeMagicConstant::TYPE_STRING(),
'values' => ['foo'],
'expectedValues' => ['foo'],
],
[
'magicConstant' => FakeMagicConstant::TYPE_INTEGER(),
'values' => [123],
'expectedValues' => [123],
],
[
'magicConstant' => FakeMagicConstant::TYPE_ARRAY_SINGLE(),
'values' => ['bar'],
'expectedValues' => ['bar'],
],
[
'magicConstant' => FakeMagicConstant::TYPE_ARRAY_MULTIPLE(),
'values' => ['A', 'B', 'C'],
'expectedValues' => ['A', 'B', 'C'],
],
[
'magicConstant' => FakeMagicConstant::TYPE_ARRAY_FORMATS(),
'values' => ['value A', 'value B', 'value C'],
'expectedValues' => ['value A', 'value B', 'value C'],
],
];
}
Expand Down

0 comments on commit f8f172e

Please sign in to comment.