PHP Класс Eloquent\Phony\Assertion\ExceptionAssertionRecorder

Наследование: implements Eloquent\Phony\Assertion\AssertionRecorder
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

createFailure() публичный Метод

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

createSuccess() публичный Метод

Record that a successful assertion occurred.
public createSuccess ( array $events = [] ) : Eloquent\Phony\Event\EventCollection
$events array
Результат Eloquent\Phony\Event\EventCollection The result.

createSuccessFromEventCollection() публичный Метод

Record that a successful assertion occurred.
public createSuccessFromEventCollection ( Eloquent\Phony\Event\EventCollection $events ) : Eloquent\Phony\Event\EventCollection
$events Eloquent\Phony\Event\EventCollection The events.
Результат Eloquent\Phony\Event\EventCollection The result.

instance() публичный статический Метод

Get the static instance of this recorder.
public static instance ( ) : Eloquent\Phony\Assertion\AssertionRecorder
Результат Eloquent\Phony\Assertion\AssertionRecorder The static recorder.

setCallVerifierFactory() публичный Метод

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