You are here

public function ObjectProphecy::makeProphecyMethodCall in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php \Prophecy\Prophecy\ObjectProphecy::makeProphecyMethodCall()

Makes specific method call.

Parameters

string $methodName:

array $arguments:

Return value

mixed

File

vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php, line 186

Class

ObjectProphecy
Object prophecy.

Namespace

Prophecy\Prophecy

Code

public function makeProphecyMethodCall($methodName, array $arguments) {
  $arguments = $this->revealer
    ->reveal($arguments);
  $return = $this->callCenter
    ->makeCall($this, $methodName, $arguments);
  return $this->revealer
    ->reveal($return);
}