Total Complexity | 6 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 82.35% |
Changes | 0 |
1 | <?php |
||
14 | class DebugHelper |
||
15 | { |
||
16 | /** |
||
17 | * Internal mockable method wrapper for debug_backtrace. |
||
18 | * |
||
19 | * As mocking out debug_backtrace uses debug_backtrace internally, we need this in order to not cause a recursive |
||
20 | * cascade until the runtime explodes. |
||
21 | * |
||
22 | * Instead, we mock this method, which allows debug_backtrace to still be called correctly. |
||
23 | * |
||
24 | * @return array |
||
25 | */ |
||
26 | public function get_debug_backtrace() |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Returns a string representation of the current backtrace for display. |
||
33 | * |
||
34 | * Note that this explicitly excludes the top two frames, which will be methods from this class. |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | 1 | public function getBacktrace() |
|
66 |