. */ /** * @package Doctrine * @subpackage Log * @author Konsta Vesterinen * @author Jonathan H. Wage * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.org * @since 1.0 * @version $Revision: 3155 $ */ class Doctrine_Log_Writer_Mock extends Doctrine_Log_Writer_Abstract { /** * array of log events */ public $events = array(); /** * shutdown called? */ public $shutdown = false; /** * Write a message to the log. * * @param array $event event data * @return void */ public function _write($event) { $this->events[] = $event; } /** * Record shutdown * * @return void */ public function shutdown() { $this->shutdown = true; } }