PHP 클래스 PHPSpec2\Mocker\MockExpectation

상속: implements ArrayAcces\ArrayAccess
파일 보기 프로젝트 열기: phpspec/phpspec2

공개 메소드들

메소드 설명
__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 = '' )

비공개 메소드들

메소드 설명
getExpectation ( )

메소드 상세

__construct() 공개 메소드

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

__invoke() 공개 메소드

public __invoke ( )

offsetExists() 공개 메소드

public offsetExists ( $offset )

offsetGet() 공개 메소드

public offsetGet ( $offset )

offsetSet() 공개 메소드

public offsetSet ( $offset, $value )

offsetUnset() 공개 메소드

public offsetUnset ( $offset )

shouldBeCalled() 공개 메소드

public shouldBeCalled ( )

shouldNotBeCalled() 공개 메소드

public shouldNotBeCalled ( )

willBeDefault() 공개 메소드

public willBeDefault ( )

willReturn() 공개 메소드

public willReturn ( $value )

willReturnArgument() 공개 메소드

public willReturnArgument ( )

willReturnUsing() 공개 메소드

public willReturnUsing ( $callback )

willThrow() 공개 메소드

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