PHP Класс Eloquent\Phony\Stub\StubVerifierFactory

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( StubFactory $stubFactory, SpyFactory $spyFactory, MatcherFactory $matcherFactory, MatcherVerifier $matcherVerifier, GeneratorVerifierFactory $generatorVerifierFactory, IterableVerifierFactory $iterableVerifierFactory, CallVerifierFactory $callVerifierFactory, Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer, GeneratorAnswerBuilderFactory $generatorAnswerBuilderFactory, FunctionHookManager $functionHookManager ) Construct a new stub verifier factory.
create ( Eloquent\Phony\Stub\Stub $stub = null, Eloquent\Phony\Spy\Spy $spy = null ) : StubVerifier Create a new stub verifier.
createFromCallback ( callable | null $callback = null ) : StubVerifier Create a new stub verifier for the supplied callback.
createGlobal ( string $function, string $namespace ) : StubVerifier Create a new stub verifier for a global function and declare it in the specified namespace.
instance ( ) : StubVerifierFactory Get the static instance of this factory.

Описание методов

__construct() публичный Метод

Construct a new stub verifier factory.
public __construct ( StubFactory $stubFactory, SpyFactory $spyFactory, MatcherFactory $matcherFactory, MatcherVerifier $matcherVerifier, GeneratorVerifierFactory $generatorVerifierFactory, IterableVerifierFactory $iterableVerifierFactory, CallVerifierFactory $callVerifierFactory, Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer, GeneratorAnswerBuilderFactory $generatorAnswerBuilderFactory, FunctionHookManager $functionHookManager )
$stubFactory StubFactory The stub factory to use.
$spyFactory Eloquent\Phony\Spy\SpyFactory The spy factory to use.
$matcherFactory Eloquent\Phony\Matcher\MatcherFactory The matcher factory to use.
$matcherVerifier Eloquent\Phony\Matcher\MatcherVerifier The macther verifier to use.
$generatorVerifierFactory Eloquent\Phony\Verification\GeneratorVerifierFactory The generator verifier factory to use.
$iterableVerifierFactory Eloquent\Phony\Verification\IterableVerifierFactory The iterable verifier factory to use.
$callVerifierFactory Eloquent\Phony\Call\CallVerifierFactory The call verifier factory to use.
$assertionRecorder Eloquent\Phony\Assertion\AssertionRecorder The assertion recorder to use.
$assertionRenderer Eloquent\Phony\Assertion\AssertionRenderer The assertion renderer to use.
$generatorAnswerBuilderFactory Eloquent\Phony\Stub\Answer\Builder\GeneratorAnswerBuilderFactory The generator answer builder factory to use.
$functionHookManager Eloquent\Phony\Hook\FunctionHookManager The function hook manager to use.

create() публичный Метод

Create a new stub verifier.
public create ( Eloquent\Phony\Stub\Stub $stub = null, Eloquent\Phony\Spy\Spy $spy = null ) : StubVerifier
$stub Eloquent\Phony\Stub\Stub The stub, or null to create an anonymous stub.
$spy Eloquent\Phony\Spy\Spy The spy, or null to spy on the supplied stub.
Результат StubVerifier The newly created stub verifier.

createFromCallback() публичный Метод

Create a new stub verifier for the supplied callback.
public createFromCallback ( callable | null $callback = null ) : StubVerifier
$callback callable | null The callback, or null to create an anonymous stub.
Результат StubVerifier The newly created stub verifier.

createGlobal() публичный Метод

Create a new stub verifier for a global function and declare it in the specified namespace.
public createGlobal ( string $function, string $namespace ) : StubVerifier
$function string The function name.
$namespace string The namespace.
Результат StubVerifier The newly created stub verifier.

instance() публичный статический Метод

Get the static instance of this factory.
public static instance ( ) : StubVerifierFactory
Результат StubVerifierFactory The static factory.