/** * Format the given summary * * @since 0.5 * * @param Summary $summary * * @return string to be used for the summary */ public function formatSummary(Summary $summary) { $userSummary = $summary->getUserSummary(); return $this->assembleSummaryString($this->formatAutoComment($summary), $this->formatAutoSummary($summary), $userSummary === null ? '' : $userSummary); }
public function testSetUserSummary() { $summary = new Summary('summarytest'); $summary->setUserSummary("xyz"); $this->assertEquals('xyz', $summary->getUserSummary()); }