You are here

function ObjectProphecySpec::it_should_proxy_getProphecyMethodCalls_to_CallCenter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/spec/Prophecy/Prophecy/ObjectProphecySpec.php \spec\Prophecy\Prophecy\ObjectProphecySpec::it_should_proxy_getProphecyMethodCalls_to_CallCenter()

Parameters

\Prophecy\Call\CallCenter $callCenter:

\Prophecy\Argument\ArgumentsWildcard $wildcard:

\Prophecy\Call\Call $call:

File

vendor/phpspec/prophecy/spec/Prophecy/Prophecy/ObjectProphecySpec.php, line 113

Class

ObjectProphecySpec

Namespace

spec\Prophecy\Prophecy

Code

function it_should_proxy_getProphecyMethodCalls_to_CallCenter($lazyDouble, $callCenter, $wildcard, $call) {
  $this
    ->beConstructedWith($lazyDouble, $callCenter);
  $callCenter
    ->findCalls('setName', $wildcard)
    ->willReturn(array(
    $call,
  ));
  $this
    ->findProphecyMethodCalls('setName', $wildcard)
    ->shouldReturn(array(
    $call,
  ));
}