Skip to content

Commit abb0265

Browse files
committed
Upgrade phpunit to v10.5 and parameter name change
1 parent a316f8e commit abb0265

File tree

4 files changed

+13
-22
lines changed

4 files changed

+13
-22
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"doctrine/annotations": "^2.0.1",
1717
"laminas/laminas-coding-standard": "^2.5.0",
1818
"laminas/laminas-stdlib": "^3.18.0",
19-
"phpunit/phpunit": "^10.4.2",
19+
"phpunit/phpunit": "^10.5.0",
2020
"psalm/plugin-phpunit": "^0.19.0",
2121
"vimeo/psalm": "^5.15.0"
2222
},

composer.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/Generator/AbstractGeneratorTest.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,11 @@ class AbstractGeneratorTest extends TestCase
1414
{
1515
public function testConstructor()
1616
{
17-
$generator = $this->getMockForAbstractClass(
18-
AbstractGenerator::class,
17+
$generator = $this->getMockForAbstractClass(AbstractGenerator::class, [
1918
[
20-
[
21-
'indentation' => 'foo',
22-
],
19+
'indentation' => 'foo',
2320
],
24-
'',
25-
true,
26-
true,
27-
true,
28-
[],
29-
false
30-
);
21+
]);
3122

3223
self::assertInstanceOf(GeneratorInterface::class, $generator);
3324
self::assertSame('foo', $generator->getIndentation());

test/Generator/TestAsset/ParameterClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function defaultConstant($con = self::FOO)
7575

7676
}
7777

78-
public function defaultObjectEqualsNullAndNotOptional(?\stdClass $a, $b)
78+
public function nullableAndRequired(?\stdClass $a, $b)
7979
{
8080

8181
}

0 commit comments

Comments
 (0)