PHP Class kahlan\Allow

Afficher le fichier Open project: crysalead/kahlan

Protected Properties

Свойство Type Description
$_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.

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

andReturn() public méthode

Set return values.
public andReturn ( )

andRun() public méthode

Set return values.
public andRun ( )

toBe() public méthode

Sets the stub logic.
public toBe ( )

toBeCalled() public méthode

Stub function.
public toBeCalled ( ) : self.
Résultat self.

toBeOK() public méthode

Sets the stub logic.
public toBeOK ( )

toReceive() public méthode

Stub a chain of methods.
public toReceive ( ) : self.
Résultat self.

Property Details

$_actual protected_oe property

A fully-namespaced function name.
protected string|object $_actual
Résultat string | object

$_isClass protected_oe property

Boolean indicating if actual is a class or not.
protected bool $_isClass
Résultat boolean

$_method protected_oe property

The method instance.
protected object $_method
Résultat object

$_stub protected_oe property

The stub.
protected string|object $_stub
Résultat string | object