PHP Class Eloquent\Phony\Call\CallVerifierFactory

Afficher le fichier Open project: eloquent/phony Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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() public méthode

Wrap the supplied call in a verifier.
public fromCall ( Eloquent\Phony\Call\Call $call ) : CallVerifier
$call Eloquent\Phony\Call\Call The call.
Résultat CallVerifier The call verifier.

fromCalls() public méthode

Wrap the supplied calls in verifiers.
public fromCalls ( array $calls ) : array
$calls array
Résultat array

instance() public static méthode

Get the static instance of this factory.
public static instance ( ) : CallVerifierFactory
Résultat CallVerifierFactory The static factory.