You are here

private function MethodProphecy::bindToObjectProphecy 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::bindToObjectProphecy()
2 calls to MethodProphecy::bindToObjectProphecy()
MethodProphecy::should in vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php
Sets custom prediction to the prophecy.
MethodProphecy::will in vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php
Sets custom promise to the prophecy.

File

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

Class

MethodProphecy
Method prophecy.

Namespace

Prophecy\Prophecy

Code

private function bindToObjectProphecy() {
  if ($this->bound) {
    return;
  }
  $this
    ->getObjectProphecy()
    ->addMethodProphecy($this);
  $this->bound = true;
}