PHP Класс SimpleStackTrace, simpletest

@package SimpleTest
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.