You are here

public function MethodProphecy::getPromise in Zircon Profile 8

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

Returns currently registered promise.

Return value

null|Promise\PromiseInterface

File

vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php, line 373

Class

MethodProphecy
Method prophecy.

Namespace

Prophecy\Prophecy

Code

public function getPromise() {
  return $this->promise;
}