mocked_method_void.tpl.dist 806 B

1234567891011121314151617181920
  1. {modifier} function {reference}{method_name}({arguments_decl}){return_delim}{return_type}
  2. {{deprecation}
  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. $this->__phpunit_getInvocationMocker()->invoke(
  12. new \PHPUnit\Framework\MockObject\Invocation\ObjectInvocation(
  13. '{class_name}', '{method_name}', $__phpunit_arguments, '{return_type}', $this, {clone_arguments}
  14. )
  15. );
  16. }