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

Breadcrumb

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

function CallCenter::checkUnexpectedCalls

Return value

void

Throws

UnexpectedCallException

File

vendor/phpspec/prophecy/src/Prophecy/Call/CallCenter.php, line 153

Class

CallCenter
Calls receiver & manager.

Namespace

Prophecy\Call

Code

public function checkUnexpectedCalls() {
    foreach ($this->unexpectedCalls as $call) {
        $prophecy = $this->unexpectedCalls[$call];
        // If fake/stub doesn't have method prophecy for this call - throw exception
        if (!count($this->findMethodProphecies($prophecy, $call->getMethodName(), $call->getArguments()))) {
            throw $this->createUnexpectedCallException($prophecy, $call->getMethodName(), $call->getArguments());
        }
    }
}
RSS feed
Powered by Drupal