Skip to content

Commit

Permalink
Fix unit tests (#488)
Browse files Browse the repository at this point in the history
These bit-rotted, let's bring them up to date
  • Loading branch information
shish authored Dec 2, 2024
1 parent b35aab3 commit 26b520c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/tests/MethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testGetTypeHintFromResource(): void
$params = $method->getParams();
$this->assertEquals('string', $params[0]->getDocBlockType());
$this->assertEquals('string', $params[0]->getSignatureType());
$this->assertEquals('string|int|float|bool', $params[1]->getDocBlockType());
$this->assertEquals('string|int|float|bool|null', $params[1]->getDocBlockType());
$this->assertTrue($params[1]->isVariadic());
$this->assertEquals('', $params[1]->getSignatureType());

Expand All @@ -54,7 +54,7 @@ public function testGetTypeHintFromResource(): void
$method = new Method($xmlObject[0], $docPage->loadAndResolveFile(), $docPage->getModule(), new PhpStanFunctionMapReader(), Method::FALSY_TYPE);
$params = $method->getParams();
$this->assertEquals('string', $params[0]->getDocBlockType());
$this->assertEquals('callable', $params[1]->getDocBlockType());
$this->assertEquals('callable(array<int|string, string>):string', $params[1]->getDocBlockType());
$this->assertEquals('string', $params[0]->getSignatureType());
$this->assertEquals('callable', $params[1]->getSignatureType());

Expand Down

0 comments on commit 26b520c

Please sign in to comment.