PHP Interface PHPSpec2\Mocker\MockerInterface

Afficher le fichier Open project: phpspec/phpspec2

Méthodes publiques

Méthode 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 )
shouldNotBeCalled ( $expectation )
verify ( )
willReturn ( $expectation, $return )
willReturnUsing ( $expectation, $callback )
willThrow ( $expectation, $exception, $message = '' )
withArguments ( $expectation, array $arguments = null )

Method Details

createExpectation() public méthode

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

getExpectation() public méthode

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

hasExpectation() public méthode

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

makeDefault() public méthode

public makeDefault ( $expectation )

mock() public méthode

public mock ( $classOrInterface )

shouldBeCalled() public méthode

public shouldBeCalled ( $expectation )

shouldNotBeCalled() public méthode

public shouldNotBeCalled ( $expectation )

verify() public méthode

public verify ( )

willReturn() public méthode

public willReturn ( $expectation, $return )

willReturnUsing() public méthode

public willReturnUsing ( $expectation, $callback )

willThrow() public méthode

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

withArguments() public méthode

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