Esempio n. 1
0
 function it_returns_null_if_method_prophecy_that_matches_makeCall_arguments_has_no_promise($objectProphecy, MethodProphecy $method, ArgumentsWildcard $arguments)
 {
     $method->getMethodName()->willReturn('getName');
     $method->getArgumentsWildcard()->willReturn($arguments);
     $method->getPromise()->willReturn(null);
     $arguments->scoreArguments(array('world', 'everything'))->willReturn(100);
     $objectProphecy->getMethodProphecies()->willReturn(array($method));
     $objectProphecy->getMethodProphecies('getName')->willReturn(array($method));
     $this->makeCall($objectProphecy, 'getName', array('world', 'everything'))->shouldReturn(null);
 }