PHP Класс Eloquent\Phony\Call\CallVerifierFactory

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

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

Метод Описание
__construct ( MatcherFactory $matcherFactory, MatcherVerifier $matcherVerifier, GeneratorVerifierFactory $generatorVerifierFactory, IterableVerifierFactory $iterableVerifierFactory, Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer ) Construct a new call verifier factory.
fromCall ( Eloquent\Phony\Call\Call $call ) : CallVerifier Wrap the supplied call in a verifier.
fromCalls ( array $calls ) : array Wrap the supplied calls in verifiers.
instance ( ) : CallVerifierFactory Get the static instance of this factory.

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

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

Construct a new call verifier factory.
public __construct ( MatcherFactory $matcherFactory, MatcherVerifier $matcherVerifier, GeneratorVerifierFactory $generatorVerifierFactory, IterableVerifierFactory $iterableVerifierFactory, Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer )
$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.
$assertionRecorder Eloquent\Phony\Assertion\AssertionRecorder The assertion recorder to use.
$assertionRenderer Eloquent\Phony\Assertion\AssertionRenderer The assertion renderer to use.

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

Wrap the supplied call in a verifier.
public fromCall ( Eloquent\Phony\Call\Call $call ) : CallVerifier
$call Eloquent\Phony\Call\Call The call.
Результат CallVerifier The call verifier.

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

Wrap the supplied calls in verifiers.
public fromCalls ( array $calls ) : array
$calls array
Результат array

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

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