Class SimpleStackTrace

Description

Interrogates the stack trace to recover the failure point.

Located in /simpletest.php (line 317)


	
			
Method Summary
 SimpleStackTrace __construct (array $prefixes)
 array captureTrace ()
 boolean frameLiesWithinSimpleTestFolder (array $frame)
 boolean frameMatchesPrefix (array $frame)
 string traceMethod ([array $stack = false])
Methods
Constructor __construct (line 325)

Stashes the list of target prefixes.

SimpleStackTrace __construct (array $prefixes)
  • array $prefixes: List of method prefixes to search for.
captureTrace (line 384)

Grabs a current stack trace.

  • return: Fulle trace.
  • access: protected
array captureTrace ()
frameLiesWithinSimpleTestFolder (line 354)

Test to see if error is generated by SimpleTest itself.

  • return: True if a SimpleTest file.
  • access: protected
boolean frameLiesWithinSimpleTestFolder (array $frame)
  • array $frame: PHP stack frame.
frameMatchesPrefix (line 371)

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

  • return: True if matches a target.
  • access: protected
boolean frameMatchesPrefix (array $frame)
  • array $frame: PHP stack frame.
traceMethod (line 336)

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

  • return: Snippet of test report with line number and file.
string traceMethod ([array $stack = false])
  • array $stack: List of stack frames.

Documentation generated on Sun, 31 Oct 2010 16:32:24 -0500 by phpDocumentor 1.4.3