$docComment = new Doc('/** Test */');
$expected = new Stmt\Namespace_(
new Node\Name('Name\Space'),
$docComment = new Doc('/** Test */');
$expected = new Stmt\Namespace_(
new Node\Name('Name\Space'),
- array($stmt1, $stmt2, $stmt3),
- array('comments' => array($docComment))
+ [$stmt1, $stmt2, $stmt3],
+ ['comments' => [$docComment]]
->setDocComment($docComment)
->getNode()
;
$this->assertEquals($expected, $node);
->setDocComment($docComment)
->getNode()
;
$this->assertEquals($expected, $node);