PHP 클래스 Eloquent\Phony\Mock\Handle\StaticHandle

상속: extends AbstractHandle
파일 보기 프로젝트 열기: eloquent/phony

공개 메소드들

메소드 설명
__construct ( ReflectionClass $class, stdClass $state, StubFactory $stubFactory, StubVerifierFactory $stubVerifierFactory, AssertionRenderer $assertionRenderer, Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, Invoker $invoker ) Construct a new static handle.
proxy ( object $object ) Use the supplied object as the implementation for all methods of the mock.

메소드 상세

__construct() 공개 메소드

Construct a new static handle.
public __construct ( ReflectionClass $class, stdClass $state, StubFactory $stubFactory, StubVerifierFactory $stubVerifierFactory, AssertionRenderer $assertionRenderer, Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, Invoker $invoker )
$class ReflectionClass The class.
$state stdClass The state.
$stubFactory Eloquent\Phony\Stub\StubFactory The stub factory to use.
$stubVerifierFactory Eloquent\Phony\Stub\StubVerifierFactory The stub verifier factory to use.
$assertionRenderer Eloquent\Phony\Assertion\AssertionRenderer The assertion renderer to use.
$assertionRecorder Eloquent\Phony\Assertion\AssertionRecorder The assertion recorder to use.
$invoker Eloquent\Phony\Invocation\Invoker The invoker to use.

proxy() 공개 메소드

This method may help when partial mocking of a particular implementation is not possible; as in the case of a final class.
public proxy ( object $object )
$object object The object to use.