PHP 클래스 kahlan\Log

파일 보기 프로젝트 열기: crysalead/kahlan 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_backtrace array The backtrace.
$_children array The reports of executed expectations.
$_data array The matcher data.
$_description string The matcher description result.
$_exception string The related exception.
$_file string The file path related to the report.
$_line string The line related to the report.
$_matcher string The matcher class name from which this report is related.
$_matcherName string The matcher name from which this report is related.
$_not boolean If it's an inverted expectation.
$_scope object The scope context instance.
$_type object The type of the report.

공개 메소드들

메소드 설명
__construct ( array $config = [] ) The Constructor.
add ( $type, array $data = [] ) Adds an expectation report and emits a report event.
backtrace ( $backtrace = [] ) : array Gets the backtrace related to the report.
children ( ) : array Gets all executed expectations reports.
data ( ) : array Gets the matcher data.
description ( ) : string Gets the matcher description result.
exception ( $exception = null ) : object Gets the exception related to the report.
file ( ) : array Gets file path related to the report.
line ( ) : array Gets line related to the report.
matcher ( ) : string Gets the matcher class name related to the report.
matcherName ( ) : string Gets the matcher name related to the report.
messages ( ) : array Gets the scope related messages.
not ( ) : string Gets the not boolean.
passed ( ) : boolean Return the state of the log.
scope ( ) : object Gets the scope context of the report.
type ( $type = null ) : string Gets the type of the report.

메소드 상세

__construct() 공개 메소드

The Constructor.
public __construct ( array $config = [] )
$config array The Suite config array. Options are: -`'scope'` _object_: the scope context instance.

add() 공개 메소드

Adds an expectation report and emits a report event.
public add ( $type, array $data = [] )
$data array The report data.

backtrace() 공개 메소드

Gets the backtrace related to the report.
public backtrace ( $backtrace = [] ) : array
리턴 array

children() 공개 메소드

Gets all executed expectations reports.
public children ( ) : array
리턴 array The executed expectations reports.

data() 공개 메소드

Gets the matcher data.
public data ( ) : array
리턴 array

description() 공개 메소드

Gets the matcher description result.
public description ( ) : string
리턴 string

exception() 공개 메소드

Gets the exception related to the report.
public exception ( $exception = null ) : object
리턴 object

file() 공개 메소드

Gets file path related to the report.
public file ( ) : array
리턴 array

line() 공개 메소드

Gets line related to the report.
public line ( ) : array
리턴 array

matcher() 공개 메소드

Gets the matcher class name related to the report.
public matcher ( ) : string
리턴 string

matcherName() 공개 메소드

Gets the matcher name related to the report.
public matcherName ( ) : string
리턴 string

messages() 공개 메소드

Gets the scope related messages.
public messages ( ) : array
리턴 array

not() 공개 메소드

Gets the not boolean.
public not ( ) : string
리턴 string

passed() 공개 메소드

Return the state of the log.
public passed ( ) : boolean
리턴 boolean

scope() 공개 메소드

Gets the scope context of the report.
public scope ( ) : object
리턴 object

type() 공개 메소드

Gets the type of the report.
public type ( $type = null ) : string
리턴 string

프로퍼티 상세

$_backtrace 보호되어 있는 프로퍼티

The backtrace.
protected array $_backtrace
리턴 array

$_children 보호되어 있는 프로퍼티

The reports of executed expectations.
protected array $_children
리턴 array

$_data 보호되어 있는 프로퍼티

The matcher data.
protected array $_data
리턴 array

$_description 보호되어 있는 프로퍼티

The matcher description result.
protected string $_description
리턴 string

$_exception 보호되어 있는 프로퍼티

The related exception.
protected string $_exception
리턴 string

$_file 보호되어 있는 프로퍼티

The file path related to the report.
protected string $_file
리턴 string

$_line 보호되어 있는 프로퍼티

The line related to the report.
protected string $_line
리턴 string

$_matcher 보호되어 있는 프로퍼티

The matcher class name from which this report is related.
protected string $_matcher
리턴 string

$_matcherName 보호되어 있는 프로퍼티

The matcher name from which this report is related.
protected string $_matcherName
리턴 string

$_not 보호되어 있는 프로퍼티

If it's an inverted expectation.
protected bool $_not
리턴 boolean

$_scope 보호되어 있는 프로퍼티

The scope context instance.
protected object $_scope
리턴 object

$_type 보호되어 있는 프로퍼티

The type of the report.
protected object $_type
리턴 object