Path: blob/master/PHPMailer/test/DebugLogTestListener.php
738 views
<?php1/**2* PHPMailer - language file tests.3*4* PHP version 5.5.5*6* @author Marcus Bointon <[email protected]>7* @author Andy Prevost8* @copyright 2010 - 2020 Marcus Bointon9* @copyright 2004 - 2009 Andy Prevost10* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License11*/1213namespace PHPMailer\Test;1415class DebugLogTestListener extends \PHPUnit_Framework_BaseTestListener16{17private static $debugLog = '';1819public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time)20{21echo self::$debugLog;22}2324public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time)25{26echo self::$debugLog;27}2829public function startTest(\PHPUnit_Framework_Test $test)30{31self::$debugLog = '';32}3334public static function debugLog($str)35{36self::$debugLog .= $str . PHP_EOL;37}38}394041