PHP Class Eloquent\Phony\Verification\IterableVerifierFactory

Exibir arquivo Open project: eloquent/phony Class Usage Examples

Public Methods

Method Description
__construct ( MatcherFactory $matcherFactory, Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer ) Construct a new event order verifier factory.
create ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, array $calls ) : IterableVerifier Create a new iterable verifier.
instance ( ) : IterableVerifierFactory Get the static instance of this factory.
setCallVerifierFactory ( CallVerifierFactory $callVerifierFactory ) Set the call verifier factory.

Method Details

__construct() public method

Construct a new event order verifier factory.
public __construct ( MatcherFactory $matcherFactory, Eloquent\Phony\Assertion\AssertionRecorder $assertionRecorder, AssertionRenderer $assertionRenderer )
$matcherFactory Eloquent\Phony\Matcher\MatcherFactory The matcher factory to use.
$assertionRecorder Eloquent\Phony\Assertion\AssertionRecorder The assertion recorder to use.
$assertionRenderer Eloquent\Phony\Assertion\AssertionRenderer The assertion renderer to use.

create() public method

Create a new iterable verifier.
public create ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, array $calls ) : IterableVerifier
$subject Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call The subject.
$calls array
return IterableVerifier The newly created iterable verifier.

instance() public static method

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

setCallVerifierFactory() public method

Set the call verifier factory.
public setCallVerifierFactory ( CallVerifierFactory $callVerifierFactory )
$callVerifierFactory Eloquent\Phony\Call\CallVerifierFactory The call verifier factory to use.