You are here

public function PromiseInterface::execute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Promise/PromiseInterface.php \Prophecy\Promise\PromiseInterface::execute()

Evaluates promise.

Parameters

array $args:

ObjectProphecy $object:

MethodProphecy $method:

Return value

mixed

4 methods override PromiseInterface::execute()
CallbackPromise::execute in vendor/phpspec/prophecy/src/Prophecy/Promise/CallbackPromise.php
Evaluates promise callback.
ReturnArgumentPromise::execute in vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnArgumentPromise.php
Returns nth argument if has one, null otherwise.
ReturnPromise::execute in vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnPromise.php
Returns saved values one by one until last one, then continuously returns last value.
ThrowPromise::execute in vendor/phpspec/prophecy/src/Prophecy/Promise/ThrowPromise.php
Throws predefined exception.

File

vendor/phpspec/prophecy/src/Prophecy/Promise/PromiseInterface.php, line 34

Class

PromiseInterface
Promise interface. Promises are logical blocks, tied to `will...` keyword.

Namespace

Prophecy\Promise

Code

public function execute(array $args, ObjectProphecy $object, MethodProphecy $method);