芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/fmd/vendor/nikic/php-parser/test/PhpParser/Builder/NamespaceTest.php
array($docComment)) ); $node = $this->createNamespaceBuilder('Name\Space') ->addStmt($stmt1) ->addStmts(array($stmt2, $stmt3)) ->setDocComment($docComment) ->getNode() ; $this->assertEquals($expected, $node); $node = $this->createNamespaceBuilder(new Node\Name(array('Name', 'Space'))) ->setDocComment($docComment) ->addStmts(array($stmt1, $stmt2)) ->addStmt($stmt3) ->getNode() ; $this->assertEquals($expected, $node); $node = $this->createNamespaceBuilder(null)->getNode(); $this->assertNull($node->name); $this->assertEmpty($node->stmts); } }