Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MethodProphecy.php

function MethodProphecy::bindToObjectProphecy

Return value

void

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 608

Class

MethodProphecy
Method prophecy.

Namespace

Prophecy\Prophecy

Code

private function bindToObjectProphecy() {
    if ($this->bound) {
        return;
    }
    $this->getObjectProphecy()
        ->addMethodProphecy($this);
    $this->bound = true;
}
RSS feed
Powered by Drupal