PHP Class Eloquent\Phony\Assertion\ExceptionAssertionRecorder

Inheritance: implements Eloquent\Phony\Assertion\AssertionRecorder
Show file Open project: eloquent/phony Class Usage Examples

Public Methods

Method Description
createFailure ( string $description ) Create a new assertion failure exception.
createSuccess ( array $events = [] ) : Eloquent\Phony\Event\EventCollection Record that a successful assertion occurred.
createSuccessFromEventCollection ( Eloquent\Phony\Event\EventCollection $events ) : Eloquent\Phony\Event\EventCollection Record that a successful assertion occurred.
instance ( ) : Eloquent\Phony\Assertion\AssertionRecorder Get the static instance of this recorder.
setCallVerifierFactory ( CallVerifierFactory $callVerifierFactory ) Set the call verifier factory.

Method Details

createFailure() public method

Create a new assertion failure exception.
public createFailure ( string $description )
$description string The failure description.

createSuccess() public method

Record that a successful assertion occurred.
public createSuccess ( array $events = [] ) : Eloquent\Phony\Event\EventCollection
$events array
return Eloquent\Phony\Event\EventCollection The result.

createSuccessFromEventCollection() public method

Record that a successful assertion occurred.
public createSuccessFromEventCollection ( Eloquent\Phony\Event\EventCollection $events ) : Eloquent\Phony\Event\EventCollection
$events Eloquent\Phony\Event\EventCollection The events.
return Eloquent\Phony\Event\EventCollection The result.

instance() public static method

Get the static instance of this recorder.
public static instance ( ) : Eloquent\Phony\Assertion\AssertionRecorder
return Eloquent\Phony\Assertion\AssertionRecorder The static recorder.

setCallVerifierFactory() public method

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