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