PHP 인터페이스 PHPSpec2\Mocker\MockerInterface

파일 보기 프로젝트 열기: phpspec/phpspec2

공개 메소드들

메소드 설명
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