PHP Class PHPSpec2\Mocker\MockExpectation

Inheritance: implements ArrayAcces\ArrayAccess
Afficher le fichier Open project: phpspec/phpspec2

Méthodes publiques

Méthode 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

Méthode Description
getExpectation ( )

Method Details

__construct() public méthode

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

__invoke() public méthode

public __invoke ( )

offsetExists() public méthode

public offsetExists ( $offset )

offsetGet() public méthode

public offsetGet ( $offset )

offsetSet() public méthode

public offsetSet ( $offset, $value )

offsetUnset() public méthode

public offsetUnset ( $offset )

shouldBeCalled() public méthode

public shouldBeCalled ( )

shouldNotBeCalled() public méthode

public shouldNotBeCalled ( )

willBeDefault() public méthode

public willBeDefault ( )

willReturn() public méthode

public willReturn ( $value )

willReturnArgument() public méthode

public willReturnArgument ( )

willReturnUsing() public méthode

public willReturnUsing ( $callback )

willThrow() public méthode

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