3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Log\Writer
;
12 class Mock
extends AbstractWriter
19 public $events = array();
26 public $shutdown = false;
29 * Write a message to the log.
31 * @param array $event event data
34 public function doWrite(array $event)
36 $this->events
[] = $event;
44 public function shutdown()
46 $this->shutdown
= true;