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() |
||
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() |
|
65 | } |
||
66 |
This check looks for method names that are not written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection seeker becomes
databaseConnectionSeeker
.