Ejemplo n.º 1
0
 public function writeAsynchronousReport(reports\asynchronous $report)
 {
     $mailerSubject = $this->mailer->getSubject();
     if ($mailerSubject === null) {
         $reportTitle = $report->getTitle();
         if ($reportTitle === null) {
             $reportTitle = $this->locale->_('Unit tests report, the %1$s at %2$s', $this->adapter->date($this->locale->_('Y-m-d')), $this->adapter->date($this->locale->_('H:i:s')));
         }
         $this->mailer->setSubject($reportTitle);
     }
     return $this->write((string) $report);
 }