PHP Интерфейс PHPSpec2\Mocker\MockerInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
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 )

Описание методов

createExpectation() публичный Метод

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

getExpectation() публичный Метод

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

hasExpectation() публичный Метод

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

makeDefault() публичный Метод

public makeDefault ( $expectation )

mock() публичный Метод

public mock ( $classOrInterface )

shouldBeCalled() публичный Метод

public shouldBeCalled ( $expectation )

shouldNotBeCalled() публичный Метод

public shouldNotBeCalled ( $expectation )

verify() публичный Метод

public verify ( )

willReturn() публичный Метод

public willReturn ( $expectation, $return )

willReturnUsing() публичный Метод

public willReturnUsing ( $expectation, $callback )

willThrow() публичный Метод

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

withArguments() публичный Метод

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