function CallCenterSpec::it_records_calls_made_through_makeCall_method in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/spec/Prophecy/Call/CallCenterSpec.php \spec\Prophecy\Call\CallCenterSpec::it_records_calls_made_through_makeCall_method()
Parameters
\Prophecy\Prophecy\ObjectProphecy $objectProphecy:
\Prophecy\Argument\ArgumentsWildcard $wildcard:
File
- vendor/
phpspec/ prophecy/ spec/ Prophecy/ Call/ CallCenterSpec.php, line 22
Class
Namespace
spec\Prophecy\CallCode
function it_records_calls_made_through_makeCall_method($objectProphecy, $wildcard) {
$wildcard
->scoreArguments(array(
5,
2,
3,
))
->willReturn(10);
$objectProphecy
->getMethodProphecies()
->willReturn(array());
$this
->makeCall($objectProphecy, 'setValues', array(
5,
2,
3,
));
$calls = $this
->findCalls('setValues', $wildcard);
$calls
->shouldHaveCount(1);
$calls[0]
->shouldBeAnInstanceOf('Prophecy\\Call\\Call');
$calls[0]
->getMethodName()
->shouldReturn('setValues');
$calls[0]
->getArguments()
->shouldReturn(array(
5,
2,
3,
));
$calls[0]
->getReturnValue()
->shouldReturn(null);
}