Skip to content

Commit 9437a75

Browse files
committed
fixed a broken test
1 parent 14d2517 commit 9437a75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

generator/tests/MethodTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@ public function testGetTypeHintFromRessource()
7373

7474
public function testGetInitializer()
7575
{
76-
$docPage = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/apc/functions/apc-cache-info.xml');
76+
$docPage = new DocPage(__DIR__ . '/../doc/doc-en/en/reference/apache/functions/apache-getenv.xml');
7777
$xmlObject = $docPage->getMethodSynopsis();
7878
$method = new Method($xmlObject[0], $docPage->loadAndResolveFile(), $docPage->getModule(), new PhpStanFunctionMapReader(), Method::FALSY_TYPE);
7979

8080
$params = $method->getParams();
8181
$this->assertEquals('', $params[0]->getDefaultValue());
82+
$this->assertEquals('false', $params[1]->getDefaultValue());
8283
}
8384

8485
public function testGetReturnDocBlock(): void

0 commit comments

Comments
 (0)