PHP Class PHPSpec2\Mocker\MockExpectation

Inheritance: implements ArrayAcces\ArrayAccess
Show file Open project: phpspec/phpspec2

Public Methods

Method Description
__construct ( $mock, $method, PHPSpec2\Mocker\MockerInterface $mocker, PHPSpec2\Wrapper\Argumentsunwrapper $unwrapper )
__invoke ( )
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
shouldBeCalled ( )
shouldNotBeCalled ( )
willBeDefault ( )
willReturn ( $value )
willReturnArgument ( )
willReturnUsing ( $callback )
willThrow ( $exception, $message = '' )

Private Methods

Method Description
getExpectation ( )

Method Details

__construct() public method

public __construct ( $mock, $method, PHPSpec2\Mocker\MockerInterface $mocker, PHPSpec2\Wrapper\Argumentsunwrapper $unwrapper )
$mocker PHPSpec2\Mocker\MockerInterface
$unwrapper PHPSpec2\Wrapper\Argumentsunwrapper

__invoke() public method

public __invoke ( )

offsetExists() public method

public offsetExists ( $offset )

offsetGet() public method

public offsetGet ( $offset )

offsetSet() public method

public offsetSet ( $offset, $value )

offsetUnset() public method

public offsetUnset ( $offset )

shouldBeCalled() public method

public shouldBeCalled ( )

shouldNotBeCalled() public method

public shouldNotBeCalled ( )

willBeDefault() public method

public willBeDefault ( )

willReturn() public method

public willReturn ( $value )

willReturnArgument() public method

public willReturnArgument ( )

willReturnUsing() public method

public willReturnUsing ( $callback )

willThrow() public method

public willThrow ( $exception, $message = '' )