Check if documentation contains @hide annotation and deletes it
public checkDocumentation ( $moduleToCheck ) : mixed | ||
$moduleToCheck | ||
return | mixed |
public function test_CheckDocumentation() { $moduleToCheck = 'this is documentation which contains @hideExceptForSuperUser'; $documentationAfterCheck = 'this is documentation which contains '; $documentationGenerator = new DocumentationGenerator(); $this->assertEquals($documentationGenerator->checkDocumentation($moduleToCheck), $documentationAfterCheck); }