1 | <?php |
||
13 | class MockLogger extends Logger |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $_add = array(); |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $_error = array(); |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $_debug = array(); |
||
29 | |||
30 | /** |
||
31 | * Logger constructor |
||
32 | * |
||
33 | */ |
||
34 | public function __construct(){} |
||
35 | |||
36 | /** |
||
37 | * Add message to logger buffer |
||
38 | * |
||
39 | * @param string $message Message text |
||
40 | * |
||
41 | */ |
||
42 | public function add($message) |
||
46 | |||
47 | /** |
||
48 | * Show data in log |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | public function show_log() |
||
56 | |||
57 | /** |
||
58 | * Add error message to logger buffer |
||
59 | * |
||
60 | * @param string $message Message text |
||
61 | * |
||
62 | */ |
||
63 | public function error($message) |
||
67 | |||
68 | /** |
||
69 | * Show data in error_log |
||
70 | * |
||
71 | * @return array |
||
72 | */ |
||
73 | public function show_error_log() |
||
77 | |||
78 | /** |
||
79 | * Add debug message to logger buffer |
||
80 | * |
||
81 | * @param string $message Message to log |
||
82 | * |
||
83 | */ |
||
84 | public function debug($message) |
||
88 | |||
89 | /** |
||
90 | * Show data in debug_log |
||
91 | * |
||
92 | * @return array |
||
93 | */ |
||
94 | public function show_debug_log() |
||
98 | |||
99 | /** |
||
100 | * Sync all buffers to files |
||
101 | * |
||
102 | */ |
||
103 | public function sync() |
||
109 | } |
||
110 |