PHP Class Phockito_WhenBuilder

Show file Open project: hafriedlander/phockito

Protected Properties

Property Type Description
$i
$instance
$lastAction
$method

Public Methods

Method Description
__call ( $called, $args ) Either record the method we're stubbing, or record the next stubbed response in the sequence if we know the stubbed method already
__construct ( $instance, $method = null, $args = null )

Private Methods

Method Description
__phockito_setMethod ( $method, $args ) Store the method and args we're stubbing

Method Details

__call() public method

To be as flexible as possible, we accept _any_ method with "return" in it as a return response, and anything with throw in it as a throw response.
public __call ( $called, $args )

__construct() public method

public __construct ( $instance, $method = null, $args = null )

Property Details

$i protected property

protected $i

$instance protected property

protected $instance

$lastAction protected property

protected $lastAction

$method protected property

protected $method