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

파일 보기 프로젝트 열기: eloquent/phony 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( StubFactory $stubFactory, StubVerifierFactory $stubVerifierFactory, AssertionRenderer $assertionRenderer, Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, Invoker $invoker ) Construct a new handle factory.
instance ( ) : HandleFactory Get the static instance of this factory.
instanceHandle ( Eloquent\Phony\Mock\Mock | InstanceHandle $mock, string | null $label = null ) : InstanceHandle Create a new handle.
staticHandle ( Eloquent\Phony\Mock\Mock | Eloquent\Phony\Mock\Handle\Handle | ReflectionClas\ReflectionClass | string $class ) : StaticHandle Create a new static handle.

메소드 상세

__construct() 공개 메소드

Construct a new handle factory.
public __construct ( StubFactory $stubFactory, StubVerifierFactory $stubVerifierFactory, AssertionRenderer $assertionRenderer, Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, Invoker $invoker )
$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.

instance() 공개 정적인 메소드

Get the static instance of this factory.
public static instance ( ) : HandleFactory
리턴 HandleFactory The static factory.

instanceHandle() 공개 메소드

Create a new handle.
public instanceHandle ( Eloquent\Phony\Mock\Mock | InstanceHandle $mock, string | null $label = null ) : InstanceHandle
$mock Eloquent\Phony\Mock\Mock | InstanceHandle The mock.
$label string | null The label.
리턴 InstanceHandle The newly created handle.

staticHandle() 공개 메소드

Create a new static handle.
public staticHandle ( Eloquent\Phony\Mock\Mock | Eloquent\Phony\Mock\Handle\Handle | ReflectionClas\ReflectionClass | string $class ) : StaticHandle
$class Eloquent\Phony\Mock\Mock | Eloquent\Phony\Mock\Handle\Handle | ReflectionClas\ReflectionClass | string The class.
리턴 StaticHandle The newly created handle.