Mock.php

Go to the documentation of this file.
00001 <?php
00002 
00031 class Robo47_Log_Writer_Mock extends Robo47_Log_Writer_Abstract
00032 {
00033 
00039     public $events = array();
00045     public $shutdown = false;
00051     public $constructorParams = array();
00052 
00056     public function __construct()
00057     {
00058         $this->constructorParams = func_get_args();
00059     }
00060 
00067     public function _write($event)
00068     {
00069         $this->events[] = $event;
00070     }
00071 
00077     public function shutdown()
00078     {
00079         $this->shutdown = true;
00080     }
00081 
00088     static public function factory($config)
00089     {
00090         return new Robo47_Log_Writer_Mock($config);
00091     }
00092 }