PHP Class Eloquent\Phony\Verification\GeneratorVerifierFactory

Datei anzeigen 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 ) : GeneratorVerifier Create a new generator verifier.
instance ( ) : GeneratorVerifierFactory 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 generator verifier.
public create ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, array $calls ) : GeneratorVerifier
$subject Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call The subject.
$calls array
return GeneratorVerifier The newly created generator verifier.

instance() public static method

Get the static instance of this factory.
public static instance ( ) : GeneratorVerifierFactory
return GeneratorVerifierFactory 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.