PHP Class Eloquent\Phony\Call\CallVerifierFactory

Datei anzeigen Open project: eloquent/phony Class Usage Examples

Public Methods

Method 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 method

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 method

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

fromCalls() public method

Wrap the supplied calls in verifiers.
public fromCalls ( array $calls ) : array
$calls array
return array

instance() public static method

Get the static instance of this factory.
public static instance ( ) : CallVerifierFactory
return CallVerifierFactory The static factory.