PHP 클래스 kahlan\matcher\ToBeCalled

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

보호된 프로퍼티들

프로퍼티 타입 설명
$_actual string | object A fully-namespaced function name.
$_backtrace array The expectation backtrace reference.
$_description array The description report.
$_message object The message instance.
$_ordered boolean If true, will take the calling order into account.
$_report array The report.
$_times integer Number of occurences to match.

공개 메소드들

메소드 설명
__construct ( string | object $actual ) Constructor
__get ( $name ) Magic getter, if called with 'ordered' will set ordered to true.
_buildDescription ( mixed $startIndex ) Build the description of the runned ::match() call.
backtrace ( ) : object Gets the backtrace reference.
description ( ) Returns the description report.
match ( mixed $actual ) : boolean Checks that $actual will be called.
once ( ) : self Sets the number of occurences.
resolve ( ) : boolean Resolves the matching.
times ( integer $times = null ) : mixed Gets/sets the number of occurences.
with ( ) : self Sets arguments requirement.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string | object $actual )
$actual string | object A fully-namespaced class name or an object instance.

__get() 공개 메소드

Magic getter, if called with 'ordered' will set ordered to true.
public __get ( $name )

_buildDescription() 공개 메소드

Build the description of the runned ::match() call.
public _buildDescription ( mixed $startIndex )
$startIndex mixed The startIndex in calls log.

backtrace() 공개 메소드

Gets the backtrace reference.
public backtrace ( ) : object
리턴 object

description() 공개 메소드

Returns the description report.
public description ( )

match() 공개 정적인 메소드

Checks that $actual will be called.
public static match ( mixed $actual ) : boolean
$actual mixed The actual value.
리턴 boolean

once() 공개 메소드

Sets the number of occurences.
public once ( ) : self
리턴 self

resolve() 공개 메소드

Resolves the matching.
public resolve ( ) : boolean
리턴 boolean Returns `true` if successfully resolved, `false` otherwise.

times() 공개 메소드

Gets/sets the number of occurences.
public times ( integer $times = null ) : mixed
$times integer The number of occurences to set or none to get it.
리턴 mixed The number of occurences on get or `self` otherwise.

with() 공개 메소드

Sets arguments requirement.
public with ( ) : self
리턴 self

프로퍼티 상세

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

A fully-namespaced function name.
protected string|object $_actual
리턴 string | object

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

The expectation backtrace reference.
protected array $_backtrace
리턴 array

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

The description report.
protected array $_description
리턴 array

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

The message instance.
protected object $_message
리턴 object

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

If true, will take the calling order into account.
protected bool $_ordered
리턴 boolean

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

The report.
protected array $_report
리턴 array

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

Number of occurences to match.
protected int $_times
리턴 integer