コード例 #1
0
ファイル: VariableTest.php プロジェクト: JanHuang/annotation
    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
ファイル: FunctionsTest.php プロジェクト: JanHuang/annotation
 public function testEmptyFunctions()
 {
     $this->assertEmpty($this->parser->parse(''));
 }