Skip to content

Commit

Permalink
Upgrade phpunit to v10.5 and parameter name change
Browse files Browse the repository at this point in the history
  • Loading branch information
nishant04412 committed Oct 24, 2024
1 parent a316f8e commit abb0265
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 22 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"doctrine/annotations": "^2.0.1",
"laminas/laminas-coding-standard": "^2.5.0",
"laminas/laminas-stdlib": "^3.18.0",
"phpunit/phpunit": "^10.4.2",
"phpunit/phpunit": "^10.5.0",
"psalm/plugin-phpunit": "^0.19.0",
"vimeo/psalm": "^5.15.0"
},
Expand Down
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 3 additions & 12 deletions test/Generator/AbstractGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,11 @@ class AbstractGeneratorTest extends TestCase
{
public function testConstructor()
{
$generator = $this->getMockForAbstractClass(
AbstractGenerator::class,
$generator = $this->getMockForAbstractClass(AbstractGenerator::class, [
[
[
'indentation' => 'foo',
],
'indentation' => 'foo',
],
'',
true,
true,
true,
[],
false
);
]);

self::assertInstanceOf(GeneratorInterface::class, $generator);
self::assertSame('foo', $generator->getIndentation());
Expand Down
2 changes: 1 addition & 1 deletion test/Generator/TestAsset/ParameterClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function defaultConstant($con = self::FOO)

}

public function defaultObjectEqualsNullAndNotOptional(?\stdClass $a, $b)
public function nullableAndRequired(?\stdClass $a, $b)
{

}
Expand Down

0 comments on commit abb0265

Please sign in to comment.