PHP 클래스 kahlan\Allow

파일 보기 프로젝트 열기: crysalead/kahlan

보호된 프로퍼티들

프로퍼티 타입 설명
$_actual string | object A fully-namespaced function name.
$_isClass boolean Boolean indicating if actual is a class or not.
$_method object The method instance.
$_stub string | object The stub.

공개 메소드들

메소드 설명
__construct ( string | object $actual ) Constructor
andReturn ( ) Set return values.
andRun ( ) Set return values.
toBe ( ) Sets the stub logic.
toBeCalled ( ) : self. Stub function.
toBeOK ( ) Sets the stub logic.
toReceive ( ) : self. Stub a chain of methods.

메소드 상세

__construct() 공개 메소드

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

andReturn() 공개 메소드

Set return values.
public andReturn ( )

andRun() 공개 메소드

Set return values.
public andRun ( )

toBe() 공개 메소드

Sets the stub logic.
public toBe ( )

toBeCalled() 공개 메소드

Stub function.
public toBeCalled ( ) : self.
리턴 self.

toBeOK() 공개 메소드

Sets the stub logic.
public toBeOK ( )

toReceive() 공개 메소드

Stub a chain of methods.
public toReceive ( ) : self.
리턴 self.

프로퍼티 상세

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

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

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

Boolean indicating if actual is a class or not.
protected bool $_isClass
리턴 boolean

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

The method instance.
protected object $_method
리턴 object

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

The stub.
protected string|object $_stub
리턴 string | object