Moodle  2.2.1
http://www.collinsharper.com
SimpleStackTrace Class Reference

Public Member Functions

 SimpleStackTrace ($prefixes)
 traceMethod ($stack=false)
 _frameLiesWithinSimpleTestFolder ($frame)
 _frameMatchesPrefix ($frame)
 _captureTrace ()

Data Fields

 $_prefixes

Detailed Description

Definition at line 342 of file simpletest.php.


Member Function Documentation

Grabs a current stack trace.

Returns:
array Fulle trace. private

Definition at line 413 of file simpletest.php.

Here is the caller graph for this function:

Test to see if error is generated by SimpleTest itself.

Parameters:
array$framePHP stack frame.
Returns:
boolean True if a SimpleTest file. private

Definition at line 381 of file simpletest.php.

Here is the caller graph for this function:

_frameMatchesPrefix ( frame)

Tries to determine if the method call is an assert, etc.

Parameters:
array$framePHP stack frame.
Returns:
boolean True if matches a target. private

Definition at line 399 of file simpletest.php.

Here is the caller graph for this function:

SimpleStackTrace ( prefixes)

Stashes the list of target prefixes.

Parameters:
array$prefixesList of method prefixes to search for.

Definition at line 350 of file simpletest.php.

traceMethod ( stack = false)

Extracts the last method name that was not within Simpletest itself. Captures a stack trace if none given.

Parameters:
array$stackList of stack frames.
Returns:
string Snippet of test report with line number and file. public

Definition at line 362 of file simpletest.php.

Here is the call graph for this function:


Field Documentation

$_prefixes

Definition at line 343 of file simpletest.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations