PHP Class PHPSpec2\Mocker\MockeryMocker

Inheritance: implements PHPSpec2\Mocker\MockerInterface
Show file Open project: phpspec/phpspec2

Public Methods

Method Description
createExpectation ( $mock, $method, array $arguments = null )
getExpectation ( $mock, $method, array $arguments = null, $offset = null )
hasExpectation ( $mock, $method, array $arguments = null, $offset = null )
makeDefault ( $expectation )
mock ( $classOrInterface )
shouldBeCalled ( $expectation )
shouldBeCalledTimes ( $expectation, $times )
shouldNotBeCalled ( $expectation )
verify ( )
willReturn ( $expectation, $return )
willReturnUsing ( $expectation, $callback )
willThrow ( $expectation, $exception, $message = '' )
withArguments ( $expectation, array $arguments = null )

Method Details

createExpectation() public method

public createExpectation ( $mock, $method, array $arguments = null )
$arguments array

getExpectation() public method

public getExpectation ( $mock, $method, array $arguments = null, $offset = null )
$arguments array

hasExpectation() public method

public hasExpectation ( $mock, $method, array $arguments = null, $offset = null )
$arguments array

makeDefault() public method

public makeDefault ( $expectation )

mock() public method

public mock ( $classOrInterface )

shouldBeCalled() public method

public shouldBeCalled ( $expectation )

shouldBeCalledTimes() public method

public shouldBeCalledTimes ( $expectation, $times )

shouldNotBeCalled() public method

public shouldNotBeCalled ( $expectation )

verify() public method

public verify ( )

willReturn() public method

public willReturn ( $expectation, $return )

willReturnUsing() public method

public willReturnUsing ( $expectation, $callback )

willThrow() public method

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

withArguments() public method

public withArguments ( $expectation, array $arguments = null )
$arguments array