00001 <?php 00024 require_once 'Zend/Log/Writer/Abstract.php'; 00025 00034 class Zend_Log_Writer_Mock extends Zend_Log_Writer_Abstract 00035 { 00039 public $events = array(); 00040 00044 public $shutdown = false; 00045 00052 public function _write($event) 00053 { 00054 $this->events[] = $event; 00055 } 00056 00062 public function shutdown() 00063 { 00064 $this->shutdown = true; 00065 } 00066 }