PHP Класс kahlan\Log

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

Защищенные свойства (Protected)

Свойство Тип Описание
$_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