PHP Class Eloquent\Phony\Mock\Handle\StaticHandle

Inheritance: extends AbstractHandle
Datei anzeigen Open project: eloquent/phony

Public Methods

Method Description
__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.

Method Details

__construct() public method

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() public method

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.