. */ //@require 'Swift/Plugins/Reporter.php'; //@require 'Swift/Mime/Message.php'; /** * A HTML output reporter for the Reporter plugin. * @package Swift * @subpackage Plugins * @author Chris Corbyn */ class Swift_Plugins_Reporters_HtmlReporter implements Swift_Plugins_Reporter { /** * Notifies this ReportNotifier that $address failed or succeeded. * @param Swift_Mime_Message $message * @param string $address * @param int $result from {@link RESULT_PASS, RESULT_FAIL} */ public function notify(Swift_Mime_Message $message, $address, $result) { if (self::RESULT_PASS == $result) { echo "
" . PHP_EOL; echo "PASS " . $address . PHP_EOL; echo "
" . PHP_EOL; flush(); } else { echo "
" . PHP_EOL; echo "FAIL " . $address . PHP_EOL; echo "
" . PHP_EOL; flush(); } } }