Public Member Functions | |
SimpleStackTrace ($prefixes) | |
traceMethod ($stack=false) | |
_frameLiesWithinSimpleTestFolder ($frame) | |
_frameMatchesPrefix ($frame) | |
_captureTrace () | |
Public Attributes | |
$_prefixes |
Definition at line 292 of file simpletest.php.
SimpleStackTrace::SimpleStackTrace | ( | $ | prefixes | ) |
Stashes the list of target prefixes.
array | $prefixes List of method prefixes to search for. |
Definition at line 300 of file simpletest.php.
SimpleStackTrace::traceMethod | ( | $ | stack = false |
) |
Extracts the last method name that was not within Simpletest itself. Captures a stack trace if none given.
array | $stack List of stack frames. |
Definition at line 312 of file simpletest.php.
References _captureTrace(), _frameLiesWithinSimpleTestFolder(), and _frameMatchesPrefix().
SimpleStackTrace::_frameLiesWithinSimpleTestFolder | ( | $ | frame | ) |
Test to see if error is generated by SimpleTest itself.
array | $frame PHP stack frame. |
Definition at line 331 of file simpletest.php.
Referenced by traceMethod().
SimpleStackTrace::_frameMatchesPrefix | ( | $ | frame | ) |
Tries to determine if the method call is an assert, etc.
array | $frame PHP stack frame. |
Definition at line 349 of file simpletest.php.
Referenced by traceMethod().
SimpleStackTrace::_captureTrace | ( | ) |
Grabs a current stack trace.
Definition at line 363 of file simpletest.php.
Referenced by traceMethod().
SimpleStackTrace::$_prefixes |
Definition at line 293 of file simpletest.php.