PHP 클래스 SimpleStackTrace, simpletest

@package SimpleTest
파일 보기 프로젝트 열기: simpletest/simpletest 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $prefixes ) Stashes the list of target prefixes.
traceMethod ( array $stack = false ) : string Extracts the last method name that was not within Simpletest itself.

보호된 메소드들

메소드 설명
captureTrace ( ) : array Returns current stack trace.
frameLiesWithinSimpleTestFolder ( array $frame ) : boolean Test to see if error is generated by SimpleTest itself.
frameMatchesPrefix ( array $frame ) : boolean Tries to determine if the method call is an assert, etc.

메소드 상세

__construct() 공개 메소드

Stashes the list of target prefixes.
public __construct ( array $prefixes )
$prefixes array List of method prefixes to search for.

captureTrace() 보호된 메소드

Returns current stack trace.
protected captureTrace ( ) : array
리턴 array Full trace.

frameLiesWithinSimpleTestFolder() 보호된 메소드

Test to see if error is generated by SimpleTest itself.
protected frameLiesWithinSimpleTestFolder ( array $frame ) : boolean
$frame array PHP stack frame.
리턴 boolean True if a SimpleTest file.

frameMatchesPrefix() 보호된 메소드

Tries to determine if the method call is an assert, etc.
protected frameMatchesPrefix ( array $frame ) : boolean
$frame array PHP stack frame.
리턴 boolean True if matches a target.

traceMethod() 공개 메소드

Captures a stack trace if none given.
public traceMethod ( array $stack = false ) : string
$stack array List of stack frames.
리턴 string Snippet of test report with line number and file.