PHP Interface Eloquent\Phony\Assertion\AssertionRecorder

Datei anzeigen Open project: eloquent/phony Interface 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.

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.