示例#1
0
    public function testJsonVariables()
    {
        $docComment = <<<DOC
/**
 * @name janhuang
 * @info {"name": "jan"}
 */
DOC;
        $variables = $this->parser->parse($docComment);
        $this->assertEquals(['name' => 'janhuang', 'info' => ['name' => 'jan']], $variables);
    }
示例#2
0
 public function testEmptyFunctions()
 {
     $this->assertEmpty($this->parser->parse(''));
 }