Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Log / Writer / Mock.php
blob89338155a96685f202d1e64b5fcc8cf1880af95a
1 <?php
2 /**
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
8 */
10 namespace Zend\Log\Writer;
12 class Mock extends AbstractWriter
14 /**
15 * array of log events
17 * @var array
19 public $events = array();
21 /**
22 * shutdown called?
24 * @var bool
26 public $shutdown = false;
28 /**
29 * Write a message to the log.
31 * @param array $event event data
32 * @return void
34 public function doWrite(array $event)
36 $this->events[] = $event;
39 /**
40 * Record shutdown
42 * @return void
44 public function shutdown()
46 $this->shutdown = true;