fromCode() public method

Extract and process all doc-comments from the contents.
public fromCode ( string $code, Context $context ) : Analysis
$code string PHP code. (including
$context Context The original location of the contents.
return Analysis
Ejemplo n.º 1
0
 public function testWrongCommentType()
 {
     $analyser = new StaticAnalyser();
     $this->assertSwaggerLogEntryStartsWith('Annotations are only parsed inside `/**` DocBlocks');
     $analyser->fromCode("<?php\n/*\n * @SWG\\Parameter() */", new Context([]));
 }