proxied_method_void.tpl.dist 1018 B

1234567891011121314151617181920212223242526
  1. {modifier} function {reference}{method_name}({arguments_decl}){return_delim}{return_type}
  2. {
  3. $__phpunit_arguments = [{arguments_call}];
  4. $__phpunit_count = func_num_args();
  5. if ($__phpunit_count > {arguments_count}) {
  6. $__phpunit_arguments_tmp = func_get_args();
  7. for ($__phpunit_i = {arguments_count}; $__phpunit_i < $__phpunit_count; $__phpunit_i++) {
  8. $__phpunit_arguments[] = $__phpunit_arguments_tmp[$__phpunit_i];
  9. }
  10. }
  11. $__phpunit_invocation = new \PHPUnit\Framework\MockObject\Invocation\ObjectInvocation(
  12. '{class_name}', '{method_name}', $__phpunit_arguments, '{return_type}', $this, {clone_arguments}
  13. );
  14. $__phpunit_invocation->setProxiedCall();
  15. $this->__phpunit_getInvocationMocker()->invoke($__phpunit_invocation);
  16. unset($__phpunit_invocation);
  17. call_user_func_array(array($this->__phpunit_originalObject, "{method_name}"), $__phpunit_arguments);
  18. }