You are here

function ObjectProphecySpec::it_should_proxy_makeProphecyMethodCall_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_makeProphecyMethodCall_to_CallCenter()

Parameters

\Prophecy\Call\CallCenter $callCenter:

File

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

Class

ObjectProphecySpec

Namespace

spec\Prophecy\Prophecy

Code

function it_should_proxy_makeProphecyMethodCall_to_CallCenter($lazyDouble, $callCenter) {
  $this
    ->beConstructedWith($lazyDouble, $callCenter);
  $callCenter
    ->makeCall($this
    ->getWrappedObject(), 'setName', array(
    'everzet',
  ))
    ->willReturn(42);
  $this
    ->makeProphecyMethodCall('setName', array(
    'everzet',
  ))
    ->shouldReturn(42);
}